Enum ssi_dids_core::document::representation::json_ld::ContextEntry
source · pub enum ContextEntry {
Null,
IriRef(IriRefBuf),
Definition(Definition),
}
Expand description
Context.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for ContextEntry
impl Clone for ContextEntry
source§fn clone(&self) -> ContextEntry
fn clone(&self) -> ContextEntry
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 ContextEntry
impl Debug for ContextEntry
source§impl<'de> Deserialize<'de> for ContextEntry
impl<'de> Deserialize<'de> for ContextEntry
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContextEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContextEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> From<&'a Iri> for ContextEntry
impl<'a> From<&'a Iri> for ContextEntry
source§fn from(i: &'a Iri) -> ContextEntry
fn from(i: &'a Iri) -> ContextEntry
Converts to this type from the input type.
source§impl<'a> From<&'a IriRef> for ContextEntry
impl<'a> From<&'a IriRef> for ContextEntry
source§fn from(i: &'a IriRef) -> ContextEntry
fn from(i: &'a IriRef) -> ContextEntry
Converts to this type from the input type.
source§impl From<ContextEntry> for Context
impl From<ContextEntry> for Context
source§fn from(c: ContextEntry) -> Context
fn from(c: ContextEntry) -> Context
Converts to this type from the input type.
source§impl From<Definition> for ContextEntry
impl From<Definition> for ContextEntry
source§fn from(c: Definition) -> ContextEntry
fn from(c: Definition) -> ContextEntry
Converts to this type from the input type.
source§impl From<IriBuf> for ContextEntry
impl From<IriBuf> for ContextEntry
source§fn from(i: IriBuf) -> ContextEntry
fn from(i: IriBuf) -> ContextEntry
Converts to this type from the input type.
source§impl From<IriRefBuf> for ContextEntry
impl From<IriRefBuf> for ContextEntry
source§fn from(i: IriRefBuf) -> ContextEntry
fn from(i: IriRefBuf) -> ContextEntry
Converts to this type from the input type.
source§impl PartialEq for ContextEntry
impl PartialEq for ContextEntry
source§impl PrecomputeSize for ContextEntry
impl PrecomputeSize for ContextEntry
source§impl PrintWithSize for ContextEntry
impl PrintWithSize for ContextEntry
source§impl Serialize for ContextEntry
impl Serialize for ContextEntry
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl TryFromJson for ContextEntry
impl TryFromJson for ContextEntry
type Error = InvalidContext
fn try_from_json(value: Value) -> Result<ContextEntry, InvalidContext>
impl Eq for ContextEntry
impl StructuralPartialEq for ContextEntry
Auto Trait Implementations§
impl Freeze for ContextEntry
impl RefUnwindSafe for ContextEntry
impl Send for ContextEntry
impl Sync for ContextEntry
impl Unpin for ContextEntry
impl UnwindSafe for ContextEntry
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
.