forked from MightyPork/elefren-fork
Version 0.10.0-rc1
- Added the ability to handle paged entities like favourites and such. (Only favourites in prerelease) - Added optional `source` and `moved` fields to `Account`. - Added `Source` struct to match with the `Account.source` field. - Added `CredientialsBuilder` struct for updating profile using `verify_credientials`. - Attachment now handles being sent an empty object, which is converted to `None`. - Added ombed data fields to `Card`. - Added `version` and `urls` fields to `Instance`. - Added `id`, `muting_notifications`, and `domain_blocking` to `Relationship`. - Added `emojis`, `language`, and `pinned` fields to `Status` - Added `Emoji` struct. - Added `List` and `Mention` structs(matching routes not added yet). - Added example that prints your profile.
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
/// A struct containing information about a relationship with another account.
|
||||
#[derive(Debug, Clone, Deserialize)]
|
||||
pub struct Relationship {
|
||||
/// Target account id
|
||||
pub id: String,
|
||||
/// Whether the application client follows the account.
|
||||
pub following: bool,
|
||||
/// Whether the account follows the application client.
|
||||
@@ -14,4 +16,8 @@ pub struct Relationship {
|
||||
pub muting: bool,
|
||||
/// Whether the application client has requested to follow the account.
|
||||
pub requested: bool,
|
||||
/// Whether the user is also muting notifications
|
||||
pub muting_notifications: bool,
|
||||
/// Whether the user is currently blocking the accounts's domain
|
||||
pub domain_blocking: bool,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user