pub struct ContentVersion {
pub id: i64,
pub content_id: i64,
pub version_number: i64,
pub title: String,
pub slug: String,
pub body_markdown: String,
pub excerpt: Option<String>,
pub featured_image: Option<String>,
pub metadata: Value,
pub tags: Vec<String>,
pub created_by: Option<i64>,
pub created_at: String,
}Expand description
A full snapshot of content at a point in time
Fields§
§id: i64§content_id: i64§version_number: i64§title: String§slug: String§body_markdown: String§excerpt: Option<String>§featured_image: Option<String>§metadata: Value§created_by: Option<i64>§created_at: StringTrait Implementations§
Source§impl Clone for ContentVersion
impl Clone for ContentVersion
Source§fn clone(&self) -> ContentVersion
fn clone(&self) -> ContentVersion
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 ContentVersion
impl Debug for ContentVersion
Auto Trait Implementations§
impl Freeze for ContentVersion
impl RefUnwindSafe for ContentVersion
impl Send for ContentVersion
impl Sync for ContentVersion
impl Unpin for ContentVersion
impl UnsafeUnpin for ContentVersion
impl UnwindSafe for ContentVersion
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
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