[][src]Struct elefren::entities::status::Status

pub struct Status {
    pub id: String,
    pub uri: String,
    pub url: Option<String>,
    pub account: Account,
    pub in_reply_to_id: Option<String>,
    pub in_reply_to_account_id: Option<String>,
    pub reblog: Option<Box<Status>>,
    pub content: String,
    pub created_at: DateTime<Utc>,
    pub emojis: Vec<Emoji>,
    pub replies_count: Option<u64>,
    pub reblogs_count: u64,
    pub favourites_count: u64,
    pub reblogged: Option<bool>,
    pub favourited: Option<bool>,
    pub sensitive: bool,
    pub spoiler_text: String,
    pub visibility: Visibility,
    pub media_attachments: Vec<Attachment>,
    pub mentions: Vec<Mention>,
    pub tags: Vec<Tag>,
    pub card: Option<Card>,
    pub application: Option<Application>,
    pub language: Option<String>,
    pub pinned: Option<bool>,
}

A status from the instance.

Fields

id: String

The ID of the status.

uri: String

A Fediverse-unique resource ID.

url: Option<String>

URL to the status page (can be remote)

account: Account

The Account which posted the status.

in_reply_to_id: Option<String>

The ID of the status this status is replying to, if the status is a reply.

in_reply_to_account_id: Option<String>

The ID of the account this status is replying to, if the status is a reply.

reblog: Option<Box<Status>>

If this status is a reblogged Status of another User.

content: String

Body of the status; this will contain HTML (remote HTML already sanitized)

created_at: DateTime<Utc>

The time the status was created.

emojis: Vec<Emoji>

An array of Emoji

replies_count: Option<u64>

The numbef or replies to this status.

reblogs_count: u64

The number of reblogs for the status.

favourites_count: u64

The number of favourites for the status.

reblogged: Option<bool>

Whether the application client has reblogged the status.

favourited: Option<bool>

Whether the application client has favourited the status.

sensitive: bool

Whether media attachments should be hidden by default.

spoiler_text: String

If not empty, warning text that should be displayed before the actual content.

visibility: Visibility

The visibilty of the status.

media_attachments: Vec<Attachment>

An array of attachments.

mentions: Vec<Mention>

An array of mentions.

tags: Vec<Tag>

An array of tags.

card: Option<Card>

The associated card

application: Option<Application>

Name of application used to post status.

language: Option<String>

The detected language for the status, if detected.

pinned: Option<bool>

Whether this is the pinned status for the account that posted it.

Trait Implementations

impl PartialEq<Status> for Status[src]

impl Clone for Status[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Status[src]

impl<'de> Deserialize<'de> for Status[src]

Auto Trait Implementations

impl Send for Status

impl Sync for Status

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Err = <U as TryFrom<T>>::Err