pub struct TermDetail {
pub id: Option<String>,
pub type_: Option<String>,
pub container: Option<OneOrMany<String>>,
pub context: Option<Box<JsonLdContext>>,
pub protected: Option<bool>,
pub prefix: Option<bool>,
pub reverse: Option<String>,
pub nest: Option<String>,
pub index: Option<String>,
pub language: Option<Option<String>>,
}Expand description
Provides a full mapping for a term in a JSON-LD context, supporting advanced features such as: type coercion, container types, nested context definition, language, protection, prefixing, reverse properties, and data nesting.
Each field is optional and maps to the appropriate JSON-LD 1.1 feature.
Fields§
§id: Option<String>The IRI or keyword that this term maps to (@id).
type_: Option<String>Type coercion target for values (@type). E.g., “@id”, “@vocab”, or custom IRI.
container: Option<OneOrMany<String>>Specifies container type(s) (e.g., [“@set”], “@list”). Single value or array.
context: Option<Box<JsonLdContext>>Nested context (@context) to use for this term, if any.
protected: Option<bool>Marks this context term as protected (@protected).
prefix: Option<bool>Whether this term provides prefix expansion (@prefix).
reverse: Option<String>Defines a reverse property mapping (@reverse).
nest: Option<String>Directs compacted output to nest data at this property (@nest).
index: Option<String>Assigns the property to a named index (@index).
language: Option<Option<String>>Sets the default language for string values in this term. If Some(None), serializes as explicit null.
Trait Implementations§
Source§impl Clone for TermDetail
impl Clone for TermDetail
Source§fn clone(&self) -> TermDetail
fn clone(&self) -> TermDetail
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TermDetail
impl Debug for TermDetail
Source§impl Default for TermDetail
impl Default for TermDetail
Source§fn default() -> TermDetail
fn default() -> TermDetail
Source§impl<'de> Deserialize<'de> for TermDetail
impl<'de> Deserialize<'de> for TermDetail
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>,
Source§impl PartialEq for TermDetail
impl PartialEq for TermDetail
Source§impl Serialize for TermDetail
impl Serialize for TermDetail
impl Eq for TermDetail
impl StructuralPartialEq for TermDetail
Auto Trait Implementations§
impl Freeze for TermDetail
impl RefUnwindSafe for TermDetail
impl Send for TermDetail
impl Sync for TermDetail
impl Unpin for TermDetail
impl UnsafeUnpin for TermDetail
impl UnwindSafe for TermDetail
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
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
key and return true if they are equal.