[][src]Struct egg_mode::user::RelationSource

pub struct RelationSource {
    pub id: u64,
    pub screen_name: String,
    pub following: bool,
    pub followed_by: bool,
    pub can_dm: bool,
    pub blocking: Option<bool>,
    pub marked_spam: Option<bool>,
    pub want_retweets: Option<bool>,
    pub notifications_enabled: Option<bool>,
    // some fields omitted
}

Represents relationship settings between two Twitter accounts, from the perspective of the source user.

This struct holds more information than the RelationTarget struct, mainly attributes only visible to the user that set them. While you can see relationships between any two arbitrary users, if the "source" account is the same one whose access token you're using, you can see extra information about this relationship.

Fields

id: u64

Numeric ID for this account.

screen_name: String

Screen name for this account.

following: bool

Indicates whether this source account follows the target account.

followed_by: bool

Indicates whether the target account follows this source account.

can_dm: bool

Indicates whether this source account can send a direct message to the target account.

If followed_by is false but this is true, that could indicate that the target account has allowed anyone to direct-message them.

blocking: Option<bool>

Indicates whether this source account is blocking the target account. If the source account is not the authenticated user, holds None instead.

marked_spam: Option<bool>

Indicates whether this source account has reported the target account for spam. If the source account is not the authenticated user, holds None instead.

want_retweets: Option<bool>

Indicates whether this source account has decided to show retweets from the target account. If the source account is not the authenticated user, holds None instead.

notifications_enabled: Option<bool>

Indicates whether this source account has decided to receive mobile notifications for the target account. If the source account is not the authenticated user, holds None instead.

Trait Implementations

impl Debug for RelationSource[src]

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

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,