pub struct Status {Show 15 fields
pub id: String,
pub created_at: String,
pub in_reply_to_id: Option<String>,
pub in_reply_to_account_id: Option<String>,
pub sensitive: bool,
pub spoiler_text: String,
pub visibility: String,
pub language: Option<String>,
pub uri: String,
pub url: Option<String>,
pub replies_count: u64,
pub reblogs_count: u64,
pub favourites_count: u64,
pub content: String,
pub account: Account,
}Expand description
Represents a status (post) on Mastodon.
Fields§
§id: StringThe ID of the status.
created_at: StringThe time the status was created (ISO 8601).
in_reply_to_id: Option<String>ID of the status being replied to, if any.
in_reply_to_account_id: Option<String>ID of the account being replied to, if any.
sensitive: boolWhether the status is marked as sensitive (should be hidden).
spoiler_text: StringText to be shown as a warning before the status content.
visibility: StringVisibility of the status (“public”, “unlisted”, “private”, “direct”).
language: Option<String>ISO 639 language code for the status.
uri: StringURI of the status used for federation.
url: Option<String>Public URL of the status.
replies_count: u64Number of replies to the status.
reblogs_count: u64Number of reblogs (boosts) for the status.
favourites_count: u64Number of favourites (likes) for the status.
content: StringHTML content of the status.
account: AccountThe account that created the status.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Status
impl<'de> Deserialize<'de> for Status
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 Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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