Changes IDs to Strings for compliance with APIv1 (#20)
This commit is contained in:
@@ -24,7 +24,7 @@ pub struct Account {
|
|||||||
/// URL to the header static image (gif).
|
/// URL to the header static image (gif).
|
||||||
pub header_static: String,
|
pub header_static: String,
|
||||||
/// The ID of the account.
|
/// The ID of the account.
|
||||||
pub id: u64,
|
pub id: String,
|
||||||
/// Boolean for when the account cannot be followed without waiting for
|
/// Boolean for when the account cannot be followed without waiting for
|
||||||
/// approval first.
|
/// approval first.
|
||||||
pub locked: bool,
|
pub locked: bool,
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use super::status::Status;
|
|||||||
#[derive(Debug, Clone, Deserialize)]
|
#[derive(Debug, Clone, Deserialize)]
|
||||||
pub struct Notification {
|
pub struct Notification {
|
||||||
/// The notification ID.
|
/// The notification ID.
|
||||||
pub id: u64,
|
pub id: String,
|
||||||
/// The type of notification.
|
/// The type of notification.
|
||||||
#[serde(rename = "type")]
|
#[serde(rename = "type")]
|
||||||
pub notification_type: NotificationType,
|
pub notification_type: NotificationType,
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#[derive(Debug, Clone, Deserialize)]
|
#[derive(Debug, Clone, Deserialize)]
|
||||||
pub struct Report {
|
pub struct Report {
|
||||||
/// The ID of the report.
|
/// The ID of the report.
|
||||||
pub id: u64,
|
pub id: String,
|
||||||
/// The action taken in response to the report.
|
/// The action taken in response to the report.
|
||||||
pub action_taken: String,
|
pub action_taken: String,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user