pub enum ValueOrReference {
Reference(DIDURLReferenceBuf),
Value(DIDVerificationMethod),
}
Expand description
Reference to, or value of, a verification method.
Variants§
Implementations§
source§impl ValueOrReference
impl ValueOrReference
pub fn id(&self) -> DIDURLReference<'_>
pub fn as_value(&self) -> Option<&DIDVerificationMethod>
Trait Implementations§
source§impl Clone for ValueOrReference
impl Clone for ValueOrReference
source§fn clone(&self) -> ValueOrReference
fn clone(&self) -> ValueOrReference
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 ValueOrReference
impl Debug for ValueOrReference
source§impl<'de> Deserialize<'de> for ValueOrReference
impl<'de> Deserialize<'de> for ValueOrReference
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 ExtractResource for ValueOrReference
impl ExtractResource for ValueOrReference
source§impl FindResource for ValueOrReference
impl FindResource for ValueOrReference
fn find_resource(&self, base_did: &DID, id: &DIDURL) -> Option<ResourceRef<'_>>
source§impl From<DIDURLBuf> for ValueOrReference
impl From<DIDURLBuf> for ValueOrReference
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<DIDVerificationMethod> for ValueOrReference
impl From<DIDVerificationMethod> for ValueOrReference
source§fn from(value: DIDVerificationMethod) -> Self
fn from(value: DIDVerificationMethod) -> Self
Converts to this type from the input type.
source§impl PartialEq for ValueOrReference
impl PartialEq for ValueOrReference
source§impl Serialize for ValueOrReference
impl Serialize for ValueOrReference
source§impl UsesResource for ValueOrReference
impl UsesResource for ValueOrReference
impl Eq for ValueOrReference
impl StructuralPartialEq for ValueOrReference
Auto Trait Implementations§
impl Freeze for ValueOrReference
impl RefUnwindSafe for ValueOrReference
impl Send for ValueOrReference
impl Sync for ValueOrReference
impl Unpin for ValueOrReference
impl UnwindSafe for ValueOrReference
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
.