pub struct ContextDocument {
pub context: Context,
}Expand description
Context document.
A context document is a JSON-LD document containing an object with a single
@context entry.
Fields§
§context: ContextThe @context entry, the sole entry of the document.
Trait Implementations§
Source§impl Clone for ContextDocument
impl Clone for ContextDocument
Source§impl Debug for ContextDocument
impl Debug for ContextDocument
Source§impl<'de> Deserialize<'de> for ContextDocument
Available on crate feature serde only.
impl<'de> Deserialize<'de> for ContextDocument
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 ContextDocument
Source§impl PartialEq for ContextDocument
impl PartialEq for ContextDocument
Source§impl Serialize for ContextDocument
Available on crate feature serde only.
impl Serialize for ContextDocument
Available on crate feature
serde only.impl StructuralPartialEq for ContextDocument
Auto Trait Implementations§
impl Freeze for ContextDocument
impl RefUnwindSafe for ContextDocument
impl Send for ContextDocument
impl Sync for ContextDocument
impl Unpin for ContextDocument
impl UnsafeUnpin for ContextDocument
impl UnwindSafe for ContextDocument
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.