pub enum JsonLdContext {
Iri(String),
Object(SimpleContext),
Array(Vec<JsonLdContext>),
}Expand description
Describes how a JSON-LD @context may be represented:
as a remote IRI, an inline object, or a list of multiple contexts.
This flexibility enables referencing remote contexts, inlining ad-hoc mappings, or combining several contexts in a single document.
Variants§
Iri(String)
The context is a remote document specified by an IRI.
Object(SimpleContext)
The context is a locally inlined object containing mappings and settings.
Array(Vec<JsonLdContext>)
The context is a list of IRIs and/or objects, processed in order.
Trait Implementations§
Source§impl Clone for JsonLdContext
impl Clone for JsonLdContext
Source§fn clone(&self) -> JsonLdContext
fn clone(&self) -> JsonLdContext
Returns a duplicate 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 JsonLdContext
impl Debug for JsonLdContext
Source§impl<'de> Deserialize<'de> for JsonLdContext
impl<'de> Deserialize<'de> for JsonLdContext
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 PartialEq for JsonLdContext
impl PartialEq for JsonLdContext
Source§impl Serialize for JsonLdContext
impl Serialize for JsonLdContext
impl Eq for JsonLdContext
impl StructuralPartialEq for JsonLdContext
Auto Trait Implementations§
impl Freeze for JsonLdContext
impl RefUnwindSafe for JsonLdContext
impl Send for JsonLdContext
impl Sync for JsonLdContext
impl Unpin for JsonLdContext
impl UnsafeUnpin for JsonLdContext
impl UnwindSafe for JsonLdContext
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.