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

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

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]

[src]

Formats the value using the given formatter.