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: TweetEntities
extended_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: bool
quoted_status_id: Option<u64>
quoted_status_id_str: Option<String>
quoted_status: Option<Box<Tweet>>
retweet_count: u64
favorite_count: u64
favorited: bool
retweeted: bool
retweeted_status: Option<Box<Tweet>>
possibly_sensitive: Option<bool>
lang: Option<String>
Trait Implementations
impl<'de> Deserialize<'de> for Tweet
[src]
impl<'de> Deserialize<'de> for Tweet
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[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
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[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]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
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]
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,