Struct kuon::User[][src]

pub struct User {
Show fields 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: u64, pub friends_count: u64, pub listed_count: u64, pub favourites_count: u64, pub statuses_count: u64, 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 entities: Option<UserEntities>, pub derived: Option<Value>, pub withheld_in_countries: Option<Vec<String>>, pub withheld_scope: Option<String>, // some fields omitted
}

Fields

id: u64

The integer representation of the unique identifier for this User. This number is greater than 53 bits and some programming languages may have difficulty/silent defects in interpreting it. Using a signed 64 bit integer for storing this identifier is safe. Use id_str to fetch the identifier to be safe. See Twitter IDs for more information.

id_str: String

The string representation of the unique identifier for this User. Implementations should use this rather than the large, possibly un-consumable integer in id.

name: String

The name of the user, as they’ve defined it. Not necessarily a person’s name. Typically capped at 50 characters, but subject to change.

screen_name: String

The screen name, handle, or alias that this user identifies themselves with. screen_names are unique but subject to change. Use id_str as a user identifier whenever possible. Typically a maximum of 15 characters long, but some historical accounts may exist with longer names.

location: Option<String>url: Option<String>

Nullable. A URL provided by the user in association with their profile.

description: Option<String>

Nullable. The user-defined UTF-8 string describing their account.

protected: bool

When true, indicates that this user has chosen to protect their Tweets. See About Public and Protected Tweets.

verified: bool

When true, indicates that the user has a verified account. See Verified Accounts.

followers_count: u64

The number of followers this account currently has. Under certain conditions of duress, this field will temporarily indicate “0”.

friends_count: u64

The number of users this account is following (AKA their “followings”). Under certain conditions of duress, this field will temporarily indicate “0”.

listed_count: u64

The number of public lists that this user is a member of.

favourites_count: u64

The number of Tweets this user has liked in the account’s lifetime. British spelling used in the field name for historical reasons.

statuses_count: u64

The number of Tweets (including retweets) issued by the user.

created_at: DateTime<Utc>

The UTC datetime that the user account was created on Twitter.

profile_banner_url: Option<String>

The HTTPS-based URL pointing to the standard web representation of the user’s uploaded profile banner. By adding a final path element of the URL, it is possible to obtain different image sizes optimized for specific displays. For size variants, please see User Profile Images and Banners.

profile_image_url_https: String

A HTTPS-based URL pointing to the user’s profile image.

default_profile: bool

When true, indicates that the user has not altered the theme or background of their user profile.

default_profile_image: bool

When true, indicates that the user has not uploaded their own profile image and a default image is used instead.

entities: Option<UserEntities>derived: Option<Value>

Enterprise only
Enterprise APIs only Collection of Enrichment metadata derived for user. Provides the Profile Geo Enrichment metadata. See referenced documentation for more information, including JSON data dictionaries.

withheld_in_countries: Option<Vec<String>>

When present, indicates a list of uppercase two-letter country codes this content is withheld from. Twitter supports the following non-country values for this field:

“XX” - Content is withheld in all countries “XY” - Content is withheld due to a DMCA request.

withheld_scope: Option<String>

When present, indicates that the content being withheld is a “user.”

Trait Implementations

impl Clone for User[src]

fn clone(&self) -> User[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for User[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

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

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
    __D: Deserializer<'de>, 
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for User[src]

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
    __S: Serializer
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl RefUnwindSafe for User

impl Send for User

impl Sync for User

impl Unpin for User

impl UnwindSafe for User

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

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

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

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