pub struct PostUpdate {
pub comments_active: Option<bool>,
pub content: Option<Option<String>>,
pub expiration_date: Option<Option<DateTime<Utc>>>,
pub image_ids: Option<Vec<i64>>,
pub publication_date: Option<Option<DateTime<Utc>>>,
pub title: Option<String>,
pub visibility: Option<String>,
pub extra: Map<String, Value>,
}Fields§
§comments_active: Option<bool>§content: Option<Option<String>>None leaves the field out, Some(None) sends null.
expiration_date: Option<Option<DateTime<Utc>>>None leaves the field out, Some(None) sends null.
image_ids: Option<Vec<i64>>§publication_date: Option<Option<DateTime<Utc>>>None leaves the field out, Some(None) sends null.
title: Option<String>§visibility: Option<String>Allowed values: group_intern, group_visible.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for PostUpdate
impl Clone for PostUpdate
Source§impl Debug for PostUpdate
impl Debug for PostUpdate
Source§impl Default for PostUpdate
impl Default 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
Source§impl PartialEq for PostUpdate
impl PartialEq for PostUpdate
Source§impl Serialize for PostUpdate
impl Serialize for PostUpdate
impl StructuralPartialEq for PostUpdate
Auto Trait Implementations§
impl Freeze for PostUpdate
impl RefUnwindSafe for PostUpdate
impl Send for PostUpdate
impl Sync for PostUpdate
impl Unpin for PostUpdate
impl UnsafeUnpin 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