Struct ssi_dids_core::RelativePath

source ·
pub struct RelativePath(/* private fields */);
Expand description

DID URL path.

Implementations§

source§

impl RelativePath

source

pub unsafe fn new_unchecked(data: &[u8]) -> &Self

Creates a relative DID URL path from the given data without validation.

§Safety

The input data must be a valid relative DID URL path.

source

pub fn as_str(&self) -> &str

Returns the relative DID URL path as a string.

source

pub fn as_bytes(&self) -> &[u8]

Returns the relative DID URL path as a byte string.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> WithContext for T
where T: ?Sized,

source§

fn with<C>(&self, context: C) -> Contextual<&T, C>

source§

fn into_with<C>(self, context: C) -> Contextual<T, C>