mastodon API rust lib elefren, fixed and updated. and also all ASYNC! NB. most examples are now wrong.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
elefren-fork/src/entities/relationship.rs

23 lines
904 B

//! module containing everything relating to a relationship with
//! another account.
/// 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.
pub followed_by: bool,
/// Whether the application client blocks the account.
pub blocking: bool,
/// Whether the application client blocks the account.
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,
}