Struct kuon::Tweet[][src]

pub struct Tweet {
Show fields pub created_at: DateTime<Utc>, pub id: u64, pub id_str: Option<String>, pub text: String, pub source: Option<String>, pub truncated: bool, pub entities: TweetEntities, pub extended_entities: Option<ExtendedEntities>, pub metadata: Option<TweetMetadata>, pub user: User, pub in_reply_to_status_id: Option<u64>, pub in_reply_to_status_id_str: Option<String>, pub in_reply_to_user_id: Option<u64>, pub in_reply_to_user_id_str: Option<String>, pub in_reply_to_screen_name: Option<String>, pub geo: Option<Value>, pub coordinates: Option<Value>, pub place: Option<Value>, pub contributors: Option<Value>, pub is_quote_status: bool, pub quoted_status_id: Option<u64>, pub quoted_status_id_str: Option<String>, pub quoted_status: Option<Box<Tweet>>, pub retweet_count: u64, pub favorite_count: u64, pub favorited: bool, pub retweeted: bool, pub retweeted_status: Option<Box<Tweet>>, pub possibly_sensitive: Option<bool>, pub lang: Option<String>,
}

Fields

created_at: DateTime<Utc>

UTC time when this Tweet was created.

id: u64

The integer representation of the unique identifier for this Tweet. 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: Option<String>

The string representation of the unique identifier for this Tweet. Implementations should use this rather than the large integer in id.

text: String

The actual UTF-8 text of the status update. See twitter-text for details on what characters are currently considered valid.

source: Option<String>

Utility used to post the Tweet, as an HTML-formatted string. Tweets from the Twitter website have a source value of web.

truncated: bool

Indicates whether the value of the text parameter was truncated, for example, as a result of a retweet exceeding the original Tweet text length limit of 140 characters. Truncated text will end in ellipsis, like this ... Since Twitter now rejects long Tweets vs truncating them, the large majority of Tweets will have this set to false. Note that while native retweets may have their toplevel text property shortened, the original text will be available under the retweeted_status object and the truncated parameter will be set to the value of the original status (in most cases, false ).

entities: TweetEntitiesextended_entities: Option<ExtendedEntities>metadata: Option<TweetMetadata>user: User

The user who posted this Tweet. See User data dictionary for complete list of attributes.

in_reply_to_status_id: Option<u64>

Nullable. If the represented Tweet is a reply, this field will contain the integer representation of the original Tweet’s ID.

in_reply_to_status_id_str: Option<String>

Nullable. If the represented Tweet is a reply, this field will contain the string representation of the original Tweet’s ID.

in_reply_to_user_id: Option<u64>

Nullable. If the represented Tweet is a reply, this field will contain the integer representation of the original Tweet’s author ID. This will not necessarily always be the user directly mentioned in the Tweet.

in_reply_to_user_id_str: Option<String>

Nullable. If the represented Tweet is a reply, this field will contain the string representation of the original Tweet’s author ID. This will not necessarily always be the user directly mentioned in the Tweet.

in_reply_to_screen_name: Option<String>

Nullable. If the represented Tweet is a reply, this field will contain the screen name of the original Tweet’s author.

geo: Option<Value>coordinates: Option<Value>

Nullable. Represents the geographic location of this Tweet as reported by the user or client application. The inner coordinates array is formatted as geoJSON (longitude first, then latitude).

place: Option<Value>

Nullable When present, indicates that the tweet is associated (but not necessarily originating from) a Place

contributors: Option<Value>is_quote_status: boolquoted_status_id: Option<u64>quoted_status_id_str: Option<String>quoted_status: Option<Box<Tweet>>retweet_count: u64favorite_count: u64favorited: boolretweeted: boolretweeted_status: Option<Box<Tweet>>possibly_sensitive: Option<bool>lang: Option<String>

Trait Implementations

impl Clone for Tweet[src]

fn clone(&self) -> Tweet[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 Tweet[src]

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

Formats the value using the given formatter. Read more

impl<'de> Deserialize<'de> for Tweet[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 Tweet[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 Tweet

impl Send for Tweet

impl Sync for Tweet

impl Unpin for Tweet

impl UnwindSafe for Tweet

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]