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 moreSource§impl Debug for Relationship
impl Debug for Relationship
Source§impl<'de> Deserialize<'de> for Relationship
impl<'de> Deserialize<'de> for Relationship
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Relationship, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Relationship, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for Relationship
impl PartialEq for Relationship
Source§impl Serialize for Relationship
impl Serialize for Relationship
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for Relationship
impl StructuralPartialEq for Relationship
Auto Trait Implementations§
impl Freeze for Relationship
impl RefUnwindSafe for Relationship
impl Send for Relationship
impl Sync for Relationship
impl Unpin for Relationship
impl UnwindSafe for Relationship
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.