|
|
@ -8,7 +8,7 @@ use status_builder::Visibility; |
|
|
|
#[derive(Debug, Clone, Deserialize)] |
|
|
|
#[derive(Debug, Clone, Deserialize)] |
|
|
|
pub struct Status { |
|
|
|
pub struct Status { |
|
|
|
/// The ID of the status.
|
|
|
|
/// The ID of the status.
|
|
|
|
pub id: i64, |
|
|
|
pub id: String, |
|
|
|
/// A Fediverse-unique resource ID.
|
|
|
|
/// A Fediverse-unique resource ID.
|
|
|
|
pub uri: String, |
|
|
|
pub uri: String, |
|
|
|
/// URL to the status page (can be remote)
|
|
|
|
/// URL to the status page (can be remote)
|
|
|
@ -17,10 +17,10 @@ pub struct Status { |
|
|
|
pub account: Account, |
|
|
|
pub account: Account, |
|
|
|
/// The ID of the status this status is replying to, if the status is
|
|
|
|
/// The ID of the status this status is replying to, if the status is
|
|
|
|
/// a reply.
|
|
|
|
/// a reply.
|
|
|
|
pub in_reply_to_id: Option<u64>, |
|
|
|
pub in_reply_to_id: Option<String>, |
|
|
|
/// The ID of the account this status is replying to, if the status is
|
|
|
|
/// The ID of the account this status is replying to, if the status is
|
|
|
|
/// a reply.
|
|
|
|
/// a reply.
|
|
|
|
pub in_reply_to_account_id: Option<u64>, |
|
|
|
pub in_reply_to_account_id: Option<String>, |
|
|
|
/// If this status is a reblogged Status of another User.
|
|
|
|
/// If this status is a reblogged Status of another User.
|
|
|
|
pub reblog: Option<Box<Status>>, |
|
|
|
pub reblog: Option<Box<Status>>, |
|
|
|
/// Body of the status; this will contain HTML
|
|
|
|
/// Body of the status; this will contain HTML
|
|
|
@ -63,7 +63,7 @@ pub struct Mention { |
|
|
|
/// Equals `username` for local users, includes `@domain` for remote ones.
|
|
|
|
/// Equals `username` for local users, includes `@domain` for remote ones.
|
|
|
|
pub acct: String, |
|
|
|
pub acct: String, |
|
|
|
/// Account ID.
|
|
|
|
/// Account ID.
|
|
|
|
pub id: u64, |
|
|
|
pub id: String, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// Hashtags in the status.
|
|
|
|
/// Hashtags in the status.
|
|
|
|