Changes IDs to Strings for compliance with APIv1 (#20)

This commit is contained in:
Johannes
2018-02-10 18:21:58 +00:00
committed by Aaron Power
parent 0ee5806534
commit 0b5441e52c
4 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -8,7 +8,7 @@ use status_builder::Visibility;
#[derive(Debug, Clone, Deserialize)]
pub struct Status {
/// The ID of the status.
pub id: i64,
pub id: String,
/// A Fediverse-unique resource ID.
pub uri: String,
/// URL to the status page (can be remote)
@@ -17,10 +17,10 @@ pub struct Status {
pub account: Account,
/// The ID of the status this status is replying to, if the status is
/// 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
/// 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.
pub reblog: Option<Box<Status>>,
/// 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.
pub acct: String,
/// Account ID.
pub id: u64,
pub id: String,
}
/// Hashtags in the status.