Struct lemmy_api_common::post::EditPost
source · pub struct EditPost {
pub post_id: PostId,
pub name: Option<String>,
pub url: Option<Url>,
pub body: Option<String>,
pub nsfw: Option<bool>,
pub language_id: Option<LanguageId>,
}
Expand description
Edit a post.
Fields§
§post_id: PostId
§name: Option<String>
§url: Option<Url>
§body: Option<String>
An optional body for the post in markdown.
nsfw: Option<bool>
§language_id: Option<LanguageId>
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
Auto Trait Implementations§
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