pub struct Relationship {
pub id: RelationshipId,
pub following: bool,
pub followed_by: bool,
pub blocking: bool,
pub muting: bool,
pub requested: bool,
pub muting_notifications: bool,
pub domain_blocking: bool,
pub showing_reblogs: bool,
pub endorsed: Option<bool>,
}Expand description
A struct containing information about a relationship with another account.
Fields§
§id: RelationshipIdTarget account id
following: boolWhether the application client follows the account.
followed_by: boolWhether the account follows the application client.
blocking: boolWhether the application client blocks the account.
muting: boolWhether the application client blocks the account.
requested: boolWhether the application client has requested to follow the account.
muting_notifications: boolWhether the user is also muting notifications
domain_blocking: boolWhether the user is currently blocking the accounts’s domain
showing_reblogs: boolWhether the user’s reblogs will show up in the home timeline
endorsed: Option<bool>Whether the user is currently endorsing the account
This field is not techincally nullable with mastodon >= 2.5.0, but
making it Option<bool> here means we shouldn’t get deser errors when
making calls to pleroma or mastodon<2.5.0 instances
Trait Implementations§
Source§impl Clone for Relationship
impl Clone for Relationship
Source§fn clone(&self) -> Relationship
fn clone(&self) -> Relationship
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more