[][src]Struct elefren::entities::relationship::Relationship

pub struct Relationship {
    pub id: String,
    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>,
}

A struct containing information about a relationship with another account.

Fields

id: String

Target account id

following: bool

Whether the application client follows the account.

followed_by: bool

Whether the account follows the application client.

blocking: bool

Whether the application client blocks the account.

muting: bool

Whether the application client blocks the account.

requested: bool

Whether the application client has requested to follow the account.

muting_notifications: bool

Whether the user is also muting notifications

domain_blocking: bool

Whether the user is currently blocking the accounts's domain

showing_reblogs: bool

Whether 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

impl PartialEq<Relationship> for Relationship[src]

impl Clone for Relationship[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Relationship[src]

impl<'de> Deserialize<'de> for Relationship[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Err = <U as TryFrom<T>>::Err