[−][src]Struct egg_mode::user::RelationSource
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: i64
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 Debug for RelationSource
Auto Trait Implementations
impl Send for RelationSource
impl Send for RelationSource
impl Sync for RelationSource
impl Sync for RelationSource
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 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]
impl<T> Typeable for T where
T: Any,