pub struct EditPost {
pub post_id: PostId,
pub name: Option<String>,
pub url: Option<String>,
pub body: Option<String>,
pub alt_text: Option<String>,
pub nsfw: Option<bool>,
pub language_id: Option<LanguageId>,
pub custom_thumbnail: Option<String>,
}Expand description
Edit a post.
Fields§
§post_id: PostId§name: Option<String>§url: Option<String>§body: Option<String>An optional body for the post in markdown.
alt_text: Option<String>An optional alt_text, usable for image posts.
nsfw: Option<bool>§language_id: Option<LanguageId>§custom_thumbnail: Option<String>Instead of fetching a thumbnail, use a custom one.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EditPost
impl<'de> Deserialize<'de> for EditPost
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
impl Eq for EditPost
impl StructuralPartialEq for EditPost
Auto Trait Implementations§
impl Freeze for EditPost
impl RefUnwindSafe for EditPost
impl Send for EditPost
impl Sync for EditPost
impl Unpin for EditPost
impl UnwindSafe for EditPost
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