pub struct PostContent {
pub text: Option<String>,
pub media_type: Option<String>,
pub reply_to_id: Option<PostId>,
}Expand description
Generic post content base.
Fields§
§text: Option<String>Post text content.
media_type: Option<String>Media type string.
reply_to_id: Option<PostId>ID of the post being replied to.
Trait Implementations§
Source§impl Clone for PostContent
impl Clone for PostContent
Source§fn clone(&self) -> PostContent
fn clone(&self) -> PostContent
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 PostContent
impl Debug for PostContent
Source§impl<'de> Deserialize<'de> for PostContent
impl<'de> Deserialize<'de> for PostContent
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 PostContent
impl RefUnwindSafe for PostContent
impl Send for PostContent
impl Sync for PostContent
impl Unpin for PostContent
impl UnsafeUnpin for PostContent
impl UnwindSafe for PostContent
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