Struct json_ld::context::NormalTermDefinition
source · [−]pub struct NormalTermDefinition<T, B, C, M> {
pub value: Option<Term<T, B>>,
pub prefix: bool,
pub protected: bool,
pub reverse_property: bool,
pub base_url: Option<T>,
pub context: Option<Entry<C, M>>,
pub container: Container,
pub direction: Option<Nullable<Direction>>,
pub index: Option<Entry<Index, M>>,
pub language: Option<Nullable<LenientLanguageTagBuf>>,
pub nest: Option<Entry<Nest, M>>,
pub typ: Option<Type<T>>,
}
Fields
value: Option<Term<T, B>>
prefix: bool
protected: bool
reverse_property: bool
base_url: Option<T>
context: Option<Entry<C, M>>
container: Container
direction: Option<Nullable<Direction>>
index: Option<Entry<Index, M>>
language: Option<Nullable<LenientLanguageTagBuf>>
nest: Option<Entry<Nest, M>>
typ: Option<Type<T>>
Implementations
sourceimpl<T, B, C, M> NormalTermDefinition<T, B, C, M>
impl<T, B, C, M> NormalTermDefinition<T, B, C, M>
pub fn modulo_protected_field(
&self
) -> ModuloProtected<&NormalTermDefinition<T, B, C, M>>
pub fn base_url(&self) -> Option<&T>
pub fn into_syntax_definition(
self,
vocabulary: &impl Vocabulary<Iri = T, BlankId = B>,
meta: M
) -> Meta<Nullable<TermDefinition<M, Value<M>>>, M>where
C: IntoSyntax<T, B, M>,
M: Clone,
Trait Implementations
sourceimpl<T, B, C, M> Clone for NormalTermDefinition<T, B, C, M>where
T: Clone,
B: Clone,
C: Clone,
M: Clone,
impl<T, B, C, M> Clone for NormalTermDefinition<T, B, C, M>where
T: Clone,
B: Clone,
C: Clone,
M: Clone,
sourcefn clone(&self) -> NormalTermDefinition<T, B, C, M>
fn clone(&self) -> NormalTermDefinition<T, B, C, M>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T, B, C, M> Default for NormalTermDefinition<T, B, C, M>
impl<T, B, C, M> Default for NormalTermDefinition<T, B, C, M>
sourcefn default() -> NormalTermDefinition<T, B, C, M>
fn default() -> NormalTermDefinition<T, B, C, M>
Returns the “default value” for a type. Read more
sourceimpl<T, B, C, M> PartialEq<NormalTermDefinition<T, B, C, M>> for NormalTermDefinition<T, B, C, M>where
T: PartialEq<T>,
B: PartialEq<B>,
C: PartialEq<C>,
M: PartialEq<M>,
impl<T, B, C, M> PartialEq<NormalTermDefinition<T, B, C, M>> for NormalTermDefinition<T, B, C, M>where
T: PartialEq<T>,
B: PartialEq<B>,
C: PartialEq<C>,
M: PartialEq<M>,
sourcefn eq(&self, other: &NormalTermDefinition<T, B, C, M>) -> bool
fn eq(&self, other: &NormalTermDefinition<T, B, C, M>) -> bool
sourceimpl<T, B, C, M> StrippedPartialEq<NormalTermDefinition<T, B, C, M>> for NormalTermDefinition<T, B, C, M>where
T: PartialEq<T>,
B: PartialEq<B>,
C: StrippedPartialEq<C>,
M: StrippedPartialEq<M>,
impl<T, B, C, M> StrippedPartialEq<NormalTermDefinition<T, B, C, M>> for NormalTermDefinition<T, B, C, M>where
T: PartialEq<T>,
B: PartialEq<B>,
C: StrippedPartialEq<C>,
M: StrippedPartialEq<M>,
fn stripped_eq(&self, other: &NormalTermDefinition<T, B, C, M>) -> bool
impl<T, B, C, M> Eq for NormalTermDefinition<T, B, C, M>where
T: Eq,
B: Eq,
C: Eq,
M: Eq,
impl<T, B, C, M> StrippedEq for NormalTermDefinition<T, B, C, M>where
T: Eq,
B: Eq,
C: StrippedEq,
M: StrippedEq,
impl<T, B, C, M> StructuralEq for NormalTermDefinition<T, B, C, M>
impl<T, B, C, M> StructuralPartialEq for NormalTermDefinition<T, B, C, M>
Auto Trait Implementations
impl<T, B, C, M> RefUnwindSafe for NormalTermDefinition<T, B, C, M>where
B: RefUnwindSafe,
C: RefUnwindSafe,
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, B, C, M> Send for NormalTermDefinition<T, B, C, M>where
B: Send,
C: Send,
M: Send,
T: Send,
impl<T, B, C, M> Sync for NormalTermDefinition<T, B, C, M>where
B: Sync,
C: Sync,
M: Sync,
T: Sync,
impl<T, B, C, M> Unpin for NormalTermDefinition<T, B, C, M>where
B: Unpin,
C: Unpin,
M: Unpin,
T: Unpin,
impl<T, B, C, M> UnwindSafe for NormalTermDefinition<T, B, C, M>where
B: UnwindSafe,
C: UnwindSafe,
M: UnwindSafe,
T: 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.