pub enum ContextEntry {
Null,
IriRef(IriRefBuf),
Definition(Definition),
}Expand description
Single entry of a @context.
Variants§
Null
The null value, which clears the active context.
IriRef(IriRefBuf)
An IRI reference to a remote context, to be dereferenced and loaded.
Definition(Definition)
An inline context definition.
Implementations§
Trait Implementations§
Source§impl Clone for ContextEntry
impl Clone for ContextEntry
Source§impl Debug for ContextEntry
impl Debug for ContextEntry
Source§impl<'de> Deserialize<'de> for ContextEntry
Available on crate feature serde only.
impl<'de> Deserialize<'de> for ContextEntry
Available on crate feature
serde only.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
impl Eq for ContextEntry
Source§impl From<ContextEntry> for Context
impl From<ContextEntry> for Context
Source§fn from(c: ContextEntry) -> Self
fn from(c: ContextEntry) -> Self
Converts to this type from the input type.
Source§impl From<Definition> for ContextEntry
impl From<Definition> for ContextEntry
Source§fn from(c: Definition) -> Self
fn from(c: Definition) -> Self
Converts to this type from the input type.
Source§impl IntoJson for ContextEntry
impl IntoJson for ContextEntry
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
Available on crate feature serde only.
impl Serialize for ContextEntry
Available on crate feature
serde only.impl StructuralPartialEq for ContextEntry
Source§impl TryFromJson for ContextEntry
impl TryFromJson for ContextEntry
Source§type Error = InvalidContext
type Error = InvalidContext
Error raised when the JSON value does not describe a valid
Self.Source§fn try_from_json(value: &Value) -> Result<Self, InvalidContext>
fn try_from_json(value: &Value) -> Result<Self, InvalidContext>
Builds a value of this type from the given JSON value. Read more
Auto Trait Implementations§
impl Freeze for ContextEntry
impl RefUnwindSafe for ContextEntry
impl Send for ContextEntry
impl Sync for ContextEntry
impl Unpin for ContextEntry
impl UnsafeUnpin 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
Source§fn as_unordered(&self) -> &Unordered<T>
fn as_unordered(&self) -> &Unordered<T>
Views this value as an
Unordered reference.impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Checks if
self is equivalent to key.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.