pub enum DIDURLReferenceBuf {
Absolute(DIDURLBuf),
Relative(RelativeDIDURLBuf),
}
Variants§
Absolute(DIDURLBuf)
Relative(RelativeDIDURLBuf)
Implementations§
source§impl DIDURLReferenceBuf
impl DIDURLReferenceBuf
pub fn as_did_reference(&self) -> DIDURLReference<'_>
pub fn resolve(&self, base_id: &DID) -> Cow<'_, DIDURL>
Trait Implementations§
source§impl Clone for DIDURLReferenceBuf
impl Clone for DIDURLReferenceBuf
source§fn clone(&self) -> DIDURLReferenceBuf
fn clone(&self) -> DIDURLReferenceBuf
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DIDURLReferenceBuf
impl Debug for DIDURLReferenceBuf
source§impl<'de> Deserialize<'de> for DIDURLReferenceBuf
impl<'de> Deserialize<'de> for DIDURLReferenceBuf
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<DIDURLBuf> for DIDURLReferenceBuf
impl From<DIDURLBuf> for DIDURLReferenceBuf
source§impl From<DIDURLReferenceBuf> for ValueOrReference
impl From<DIDURLReferenceBuf> for ValueOrReference
source§fn from(value: DIDURLReferenceBuf) -> Self
fn from(value: DIDURLReferenceBuf) -> Self
Converts to this type from the input type.
source§impl From<RelativeDIDURLBuf> for DIDURLReferenceBuf
impl From<RelativeDIDURLBuf> for DIDURLReferenceBuf
source§fn from(value: RelativeDIDURLBuf) -> Self
fn from(value: RelativeDIDURLBuf) -> Self
Converts to this type from the input type.
source§impl PartialEq for DIDURLReferenceBuf
impl PartialEq for DIDURLReferenceBuf
source§impl Serialize for DIDURLReferenceBuf
impl Serialize for DIDURLReferenceBuf
impl Eq for DIDURLReferenceBuf
impl StructuralPartialEq for DIDURLReferenceBuf
Auto Trait Implementations§
impl Freeze for DIDURLReferenceBuf
impl RefUnwindSafe for DIDURLReferenceBuf
impl Send for DIDURLReferenceBuf
impl Sync for DIDURLReferenceBuf
impl Unpin for DIDURLReferenceBuf
impl UnwindSafe for DIDURLReferenceBuf
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
fn deserialize_typed<S>(
_: &C,
deserializer: S,
) -> Result<T, <S as Deserializer<'de>>::Error>where
S: Deserializer<'de>,
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
fn equivalent(&self, key: &K) -> bool
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T
.