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
sourceimpl<M, C> Definition<M, C>
impl<M, C> Definition<M, C>
Trait Implementations
sourceimpl<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>>ⓘNotable traits for BindingsIter<'a, M, C>impl<'a, M: Clone, C> Iterator for BindingsIter<'a, M, C> type Item = (KeyRef<'a>, TermBindingRef<'a, M, C>);
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>ⓘNotable traits for Entries<'a, M, C>impl<'a, M: Clone, C> Iterator for Entries<'a, M, C> type Item = EntryRef<'a, M, C>;
sourceimpl<M: Clone, C: Clone> Clone for Definition<M, C>
impl<M: Clone, C: Clone> Clone for Definition<M, C>
sourcefn clone(&self) -> Definition<M, C>
fn clone(&self) -> Definition<M, C>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<M: Debug, C: Debug> Debug for Definition<M, C>
impl<M: Debug, C: Debug> Debug for Definition<M, C>
sourceimpl<M, C> Default for Definition<M, C>
impl<M, C> Default for Definition<M, C>
sourceimpl<M, C> From<Definition<M, C>> for Context<Definition<M, C>>
impl<M, C> From<Definition<M, C>> for Context<Definition<M, C>>
sourcefn from(c: Definition<M, C>) -> Self
fn from(c: Definition<M, C>) -> Self
Converts to this type from the input type.
sourceimpl<M: Default> From<Definition<M, Value<M>>> for Value<M>
impl<M: Default> From<Definition<M, Value<M>>> for Value<M>
sourcefn from(c: Definition<M, Self>) -> Self
fn from(c: Definition<M, Self>) -> Self
Converts to this type from the input type.
sourceimpl<M> IntoJsonMeta<M> for Definition<M>
impl<M> IntoJsonMeta<M> for Definition<M>
fn into_json_meta(self, meta: M) -> Meta<Value<M>, M>
sourceimpl<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>
sourcefn eq(&self, other: &Definition<M, C>) -> bool
fn eq(&self, other: &Definition<M, C>) -> bool
sourceimpl<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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> BorrowStripped for T
impl<T> BorrowStripped for T
sourceimpl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
sourceimpl<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
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.