pub struct ContentRecord {
pub content_reference_key: String,
pub content_metadata: Option<Box<ContentMetadata>>,
pub content_document: Option<Box<ContentDocument>>,
}Expand description
ContentRecord : A content document with additional information for content management.
Fields
content_reference_key: StringA unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier.
content_metadata: Option<Box<ContentMetadata>>content_document: Option<Box<ContentDocument>>Implementations
sourceimpl ContentRecord
impl ContentRecord
sourcepub fn new(content_reference_key: String) -> ContentRecord
pub fn new(content_reference_key: String) -> ContentRecord
A content document with additional information for content management.
Trait Implementations
sourceimpl Clone for ContentRecord
impl Clone for ContentRecord
sourcefn clone(&self) -> ContentRecord
fn clone(&self) -> ContentRecord
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ContentRecord
impl Debug for ContentRecord
sourceimpl Default for ContentRecord
impl Default for ContentRecord
sourcefn default() -> ContentRecord
fn default() -> ContentRecord
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ContentRecord
impl<'de> Deserialize<'de> for ContentRecord
sourcefn 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
sourceimpl PartialEq<ContentRecord> for ContentRecord
impl PartialEq<ContentRecord> for ContentRecord
sourcefn eq(&self, other: &ContentRecord) -> bool
fn eq(&self, other: &ContentRecord) -> bool
sourceimpl Serialize for ContentRecord
impl Serialize for ContentRecord
impl StructuralPartialEq for ContentRecord
Auto Trait Implementations
impl RefUnwindSafe for ContentRecord
impl Send for ContentRecord
impl Sync for ContentRecord
impl Unpin for ContentRecord
impl UnwindSafe for ContentRecord
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