pub struct ContentObject {
pub instance_of: String,
pub fields: Vec<ContentField>,
}Expand description
Struct representation of an object in the content.json
Fields§
§instance_of: Stringspecifies which content definition the object should be validated against.
fields: Vec<ContentField>fields to be validated and then stored for consumption by templates.
Trait Implementations§
Source§impl Clone for ContentObject
impl Clone for ContentObject
Source§fn clone(&self) -> ContentObject
fn clone(&self) -> ContentObject
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 ContentObject
impl Debug for ContentObject
Source§impl<'de> Deserialize<'de> for ContentObject
impl<'de> Deserialize<'de> for ContentObject
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
Auto Trait Implementations§
impl Freeze for ContentObject
impl RefUnwindSafe for ContentObject
impl Send for ContentObject
impl Sync for ContentObject
impl Unpin for ContentObject
impl UnwindSafe for ContentObject
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