pub struct TermDefinition {
pub iri_mapping: Option<String>,
pub prefix_flag: bool,
pub protected: bool,
pub reverse_property: bool,
pub container: Vec<ContainerType>,
pub language: Option<String>,
pub direction: Option<String>,
pub nest: Option<String>,
pub type_mapping: Option<String>,
}Expand description
Definition of a single term in the active context.
Corresponds to a JSON-LD term definition as specified in §4.1.
Fields§
§iri_mapping: Option<String>The expanded IRI mapping for this term.
prefix_flag: boolWhether this term can be used as a prefix.
protected: boolWhether this term definition is protected.
reverse_property: boolWhether this is a reverse property.
container: Vec<ContainerType>Container types for the term’s values.
language: Option<String>Default language for the term’s values.
direction: Option<String>Default text direction for the term’s values.
nest: Option<String>Nest value for the term.
type_mapping: Option<String>Type mapping for the term.
Implementations§
Trait Implementations§
Source§impl Clone for TermDefinition
impl Clone for TermDefinition
Source§fn clone(&self) -> TermDefinition
fn clone(&self) -> TermDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TermDefinition
impl RefUnwindSafe for TermDefinition
impl Send for TermDefinition
impl Sync for TermDefinition
impl Unpin for TermDefinition
impl UnsafeUnpin for TermDefinition
impl UnwindSafe for TermDefinition
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more