Struct libmedium::data::get_post::GetPostPost
source · pub struct GetPostPost {
pub title: String,
pub created_at: i64,
pub reading_time: f64,
pub unique_slug: String,
pub creator: GetPostPostCreator,
pub preview_image: Option<GetPostPostPreviewImage>,
pub preview_content: Option<GetPostPostPreviewContent>,
pub content: GetPostPostContent,
}
Fields§
§title: String
§created_at: i64
§reading_time: f64
§unique_slug: String
§creator: GetPostPostCreator
§preview_image: Option<GetPostPostPreviewImage>
§preview_content: Option<GetPostPostPreviewContent>
§content: GetPostPostContent
Implementations§
source§impl GetPostPost
impl GetPostPost
pub fn get_subtitle(&self) -> &str
Trait Implementations§
source§impl Clone for GetPostPost
impl Clone for GetPostPost
source§fn clone(&self) -> GetPostPost
fn clone(&self) -> GetPostPost
Returns a copy 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 GetPostPost
impl Debug for GetPostPost
source§impl<'de> Deserialize<'de> for GetPostPost
impl<'de> Deserialize<'de> for GetPostPost
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