pub struct PostCreation {
pub client: Option<Client>,
pub collection: Option<String>,
pub body: String,
pub title: Option<String>,
pub font: Option<PostAppearance>,
pub lang: Option<String>,
pub rtl: Option<bool>,
pub created: Option<DateTime<Utc>>,
}Expand description
Post creation struct
Fields§
§client: Option<Client>Client instance
collection: Option<String>Collection to post to, if desired
body: StringPost body
title: Option<String>Post title
font: Option<PostAppearance>Post font
lang: Option<String>Post language
rtl: Option<bool>Post RTL
created: Option<DateTime<Utc>>Specific post creation DT
Implementations§
Trait Implementations§
Source§impl Clone for PostCreation
impl Clone for PostCreation
Source§fn clone(&self) -> PostCreation
fn clone(&self) -> PostCreation
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 PostCreation
impl Debug for PostCreation
Source§impl<'de> Deserialize<'de> for PostCreation
impl<'de> Deserialize<'de> for PostCreation
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 PostCreation
impl RefUnwindSafe for PostCreation
impl Send for PostCreation
impl Sync for PostCreation
impl Unpin for PostCreation
impl UnwindSafe for PostCreation
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