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

pub struct RelationSource {
    pub id: i64,
    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

Numeric ID for this account.

Screen name for this account.

Indicates whether this source account follows the target account.

Indicates whether the target account follows this source account.

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.

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

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

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.

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]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for RelationSource

impl Sync for RelationSource

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Typeable for T where
    T: Any
[src]

Get the TypeId of this object.