pub struct LinkedDataObject {
pub additional_type: Option<String>,
pub context: String,
pub type_: LinkedDataType,
}
Expand description
Base type for a JSON-LD (Linked Data) object.
JSON schema
{
"description": "Base type for a JSON-LD (Linked Data) object.",
"type": "object",
"required": [
"@context",
"@type"
],
"properties": {
"@context": {
"description": "A url describing the schema context for this object, typically \"http://schema.org/\".",
"examples": [
"http://schema.org/"
],
"type": "string"
},
"@type": {
"$ref": "#/components/schemas/LinkedDataType"
},
"additionalType": {
"description": "An identifier of additional type info specific to
Coda that may not be present in a schema.org taxonomy,\n",
"type": "string"
}
},
"additionalProperties": false,
"x-schema-name": "LinkedDataObject"
}
Fields§
§additional_type: Option<String>
An identifier of additional type info specific to Coda that may not be present in a schema.org taxonomy,
context: String
A url describing the schema context for this object, typically “http://schema.org/”.
type_: LinkedDataType
Trait Implementations§
Source§impl Clone for LinkedDataObject
impl Clone for LinkedDataObject
Source§fn clone(&self) -> LinkedDataObject
fn clone(&self) -> LinkedDataObject
Returns a duplicate 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 Debug for LinkedDataObject
impl Debug for LinkedDataObject
Source§impl<'de> Deserialize<'de> for LinkedDataObject
impl<'de> Deserialize<'de> for LinkedDataObject
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&LinkedDataObject> for LinkedDataObject
impl From<&LinkedDataObject> for LinkedDataObject
Source§fn from(value: &LinkedDataObject) -> Self
fn from(value: &LinkedDataObject) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LinkedDataObject
impl RefUnwindSafe for LinkedDataObject
impl Send for LinkedDataObject
impl Sync for LinkedDataObject
impl Unpin for LinkedDataObject
impl UnwindSafe for LinkedDataObject
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
Mutably borrows from an owned value. Read more