Struct json_ld_syntax::context::definition::Definition
source · pub struct Definition<M, C = Value<M>> {
pub base: Option<Entry<Nullable<IriRefBuf>, M>>,
pub import: Option<Entry<IriRefBuf, M>>,
pub language: Option<Entry<Nullable<LenientLanguageTagBuf>, M>>,
pub direction: Option<Entry<Nullable<Direction>, M>>,
pub propagate: Option<Entry<bool, M>>,
pub protected: Option<Entry<bool, M>>,
pub type_: Option<Entry<Type<M>, M>>,
pub version: Option<Entry<Version, M>>,
pub vocab: Option<Entry<Nullable<Vocab>, M>>,
pub bindings: Bindings<M, C>,
}
Expand description
Context definition.
Fields§
§base: Option<Entry<Nullable<IriRefBuf>, M>>
§import: Option<Entry<IriRefBuf, M>>
§language: Option<Entry<Nullable<LenientLanguageTagBuf>, M>>
§direction: Option<Entry<Nullable<Direction>, M>>
§propagate: Option<Entry<bool, M>>
§protected: Option<Entry<bool, M>>
§type_: Option<Entry<Type<M>, M>>
§version: Option<Entry<Version, M>>
§vocab: Option<Entry<Nullable<Vocab>, M>>
§bindings: Bindings<M, C>
Implementations§
source§impl<M, C> Definition<M, C>
impl<M, C> Definition<M, C>
Trait Implementations§
source§impl<M: Clone + Send + Sync> AnyDefinition<M> for Definition<M>
impl<M: Clone + Send + Sync> AnyDefinition<M> for Definition<M>
type ContextValue = Value<M>
fn base(&self) -> Option<Entry<Nullable<IriRef<'_>>, M>>
fn import(&self) -> Option<Entry<IriRef<'_>, M>>
fn language(&self) -> Option<Entry<Nullable<LenientLanguageTag<'_>>, M>>
fn direction(&self) -> Option<Entry<Nullable<Direction>, M>>
fn propagate(&self) -> Option<Entry<bool, M>>
fn protected(&self) -> Option<Entry<bool, M>>
fn type_(&self) -> Option<Entry<Type<M>, M>>
fn version(&self) -> Option<Entry<Version, M>>
fn vocab(&self) -> Option<Entry<Nullable<VocabRef<'_>>, M>>
fn bindings(&self) -> BindingsIter<'_, M, Value<M>> ⓘ
fn get_binding(&self, key: &Key) -> Option<TermBindingRef<'_, M, Value<M>>>
fn get( &self, key: &KeyOrKeyword ) -> Option<EntryValueRef<'_, M, Self::ContextValue>>
fn entries(&self) -> Entries<'_, M, Self::ContextValue> ⓘ
source§impl<M: Clone, C: Clone> Clone for Definition<M, C>
impl<M: Clone, C: Clone> Clone for Definition<M, C>
source§fn clone(&self) -> Definition<M, C>
fn clone(&self) -> Definition<M, C>
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<M, C> Default for Definition<M, C>
impl<M, C> Default for Definition<M, C>
source§impl<M, C> From<Definition<M, C>> for Context<Definition<M, C>>
impl<M, C> From<Definition<M, C>> for Context<Definition<M, C>>
source§fn from(c: Definition<M, C>) -> Self
fn from(c: Definition<M, C>) -> Self
Converts to this type from the input type.
source§impl<M: Default> From<Definition<M, Value<M>>> for Value<M>
impl<M: Default> From<Definition<M, Value<M>>> for Value<M>
source§fn from(c: Definition<M, Self>) -> Self
fn from(c: Definition<M, Self>) -> Self
Converts to this type from the input type.
source§impl<M> IntoJsonMeta<M> for Definition<M>
impl<M> IntoJsonMeta<M> for Definition<M>
fn into_json_meta(self, meta: M) -> Meta<Value<M>, M>
source§impl<M: PartialEq, C: PartialEq> PartialEq<Definition<M, C>> for Definition<M, C>
impl<M: PartialEq, C: PartialEq> PartialEq<Definition<M, C>> for Definition<M, C>
source§fn eq(&self, other: &Definition<M, C>) -> bool
fn eq(&self, other: &Definition<M, C>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<M, C: StrippedPartialEq<__C>, __M, __C> StrippedPartialEq<Definition<__M, __C>> for Definition<M, C>
impl<M, C: StrippedPartialEq<__C>, __M, __C> StrippedPartialEq<Definition<__M, __C>> for Definition<M, C>
fn stripped_eq(&self, other: &Definition<__M, __C>) -> bool
impl<M: Eq, C: Eq> Eq for Definition<M, C>
impl<M, C> StructuralEq for Definition<M, C>
impl<M, C> StructuralPartialEq for Definition<M, C>
Auto Trait Implementations§
impl<M, C> RefUnwindSafe for Definition<M, C>where C: RefUnwindSafe, M: RefUnwindSafe,
impl<M, C> Send for Definition<M, C>where C: Send, M: Send,
impl<M, C> Sync for Definition<M, C>where C: Sync, M: Sync,
impl<M, C> Unpin for Definition<M, C>where M: Unpin,
impl<M, C> UnwindSafe for Definition<M, C>where C: UnwindSafe, M: UnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.