pub struct Tweet {
pub date: String,
pub user_name: String,
pub user_image_link: String,
pub status: String,
pub is_retweet: bool,
pub retweet_count: i32,
pub like_count: i32,
pub status_link: String,
pub status_id: String,
pub media_link: Option<String>,
pub youtube_link: Option<String>,
}Expand description
Tweet about given coin
Fields§
§date: StringPublish date of the tweet. RFC3999 (ISO-8601) format
user_name: StringTwitter profile user name
user_image_link: StringTwitter profile user image URL
status: StringTweet content
is_retweet: boolFlag indicating whether it is a retweet of someone else’s tweet
retweet_count: i32Number of retweets of this tweet
like_count: i32Number of likes of this tweet
status_link: StringTweet URL
status_id: StringTweet ID
media_link: Option<String>§youtube_link: Option<String>Link to Youtube video shared in this tweet
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tweet
impl<'de> Deserialize<'de> for Tweet
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Tweet
impl RefUnwindSafe for Tweet
impl Send for Tweet
impl Sync for Tweet
impl Unpin for Tweet
impl UnwindSafe for Tweet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more