Struct kuon::TrimTweet [−][src]
Fields
created_at: Option<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: TrimUser
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<String>
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<TrimTweet>>
possibly_sensitive: Option<bool>
lang: Option<String>
Trait Implementations
impl Clone for TrimTweet
[src]
impl Debug for TrimTweet
[src]
impl<'de> Deserialize<'de> for TrimTweet
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for TrimTweet
[src]
Auto Trait Implementations
impl RefUnwindSafe for TrimTweet
impl Send for TrimTweet
impl Sync for TrimTweet
impl Unpin for TrimTweet
impl UnwindSafe for TrimTweet
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,