pub struct DidUrl {
pub did: String,
pub path: Option<String>,
pub query: Option<String>,
pub fragment: Option<String>,
}Expand description
A parsed DID URL (DID + optional path, query, fragment).
Per W3C DID Core §3.2.
Fields§
§did: StringThe DID part (did:<method>:<method-specific-id>).
path: Option<String>Path segments after the method-specific identifier (may be empty).
query: Option<String>Query string (without the leading ?).
fragment: Option<String>Fragment (without the leading #). Used to reference VMs and services.
Implementations§
Trait Implementations§
impl Eq for DidUrl
impl StructuralPartialEq for DidUrl
Auto Trait Implementations§
impl Freeze for DidUrl
impl RefUnwindSafe for DidUrl
impl Send for DidUrl
impl Sync for DidUrl
impl Unpin for DidUrl
impl UnwindSafe for DidUrl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more