pub struct PostUpdate {
pub client: Option<Client>,
pub id: String,
pub token: Option<String>,
pub body: String,
pub title: Option<String>,
pub font: Option<PostAppearance>,
pub lang: Option<String>,
pub rtl: bool,
}Expand description
Struct describing a pending update to a Post
Fields§
§client: Option<Client>Client instance
id: StringPost ID
token: Option<String>Post token, if not owned
body: StringNew post body
title: Option<String>New post title
font: Option<PostAppearance>New post font
lang: Option<String>New post language
rtl: boolNew post RTL
Implementations§
Trait Implementations§
Source§impl Clone for PostUpdate
impl Clone for PostUpdate
Source§fn clone(&self) -> PostUpdate
fn clone(&self) -> PostUpdate
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 PostUpdate
impl Debug for PostUpdate
Source§impl<'de> Deserialize<'de> for PostUpdate
impl<'de> Deserialize<'de> for PostUpdate
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 PostUpdate
impl RefUnwindSafe for PostUpdate
impl Send for PostUpdate
impl Sync for PostUpdate
impl Unpin for PostUpdate
impl UnwindSafe for PostUpdate
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