[][src]Struct tweet::User

pub struct User {
    pub id: u64,
    pub id_str: String,
    pub name: String,
    pub screen_name: String,
    pub location: Option<String>,
    pub url: Option<String>,
    pub description: Option<String>,
    pub protected: bool,
    pub verified: bool,
    pub followers_count: u32,
    pub friends_count: u32,
    pub listed_count: u32,
    pub favourites_count: u32,
    pub statuses_count: u32,
    pub created_at: DateTime<Utc>,
    pub profile_banner_url: Option<String>,
    pub profile_image_url_https: String,
    pub default_profile: bool,
    pub default_profile_image: bool,
    pub withheld_in_countries: Option<Vec<String>>,
    pub withheld_scope: Option<String>,
}

Represents a twitter user

Fields

id: u64

Unique identifier for the user

id_str: String

Same as id, but a String

name: String

The user's display name

screen_name: String

The user's handle

location: Option<String>

The user-defined location of the user

url: Option<String>

User-provided URL associated with their profile

description: Option<String>

User-provided description of their profile

protected: bool

Whether this user's tweets are protected or not

verified: bool

Whether this user is verified or not

followers_count: u32

How many followers this user has

friends_count: u32

How many friends this user has

listed_count: u32

How many public lists this user is a member of

favourites_count: u32

How many favorites this user has

statuses_count: u32

How many tweets and retweets this user has

created_at: DateTime<Utc>

When the account was created

profile_banner_url: Option<String>

User's uploaded profile banner

profile_image_url_https: String

User's uploaded profile image

default_profile: bool

When true, indicates user has not changed theme or background of their profile

default_profile_image: bool

Whether or not the user has a default profile image or not

withheld_in_countries: Option<Vec<String>>

Which countries this user is blocked in

withheld_scope: Option<String>

Indicates whether content being withheld is a "user"

Trait Implementations

impl Debug for User[src]

impl Serialize for User[src]

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

Auto Trait Implementations

impl Send for User

impl Sync for User

Blanket Implementations

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

impl<T> From<T> for 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]