pub struct Tweet {
pub username: String,
pub display_name: String,
pub avatar_url: String,
pub comment: String,
pub replies: String,
pub retweets: String,
pub likes: String,
pub theme: String,
}
Fields§
§username: String
§display_name: String
§avatar_url: String
§comment: String
§replies: String
§retweets: String
§likes: String
§theme: String
Implementations§
Source§impl Tweet
impl Tweet
Sourcepub fn new<T: ToString, U: ToString, V: ToString>(
username: T,
avatar_url: U,
comment: V,
) -> Self
pub fn new<T: ToString, U: ToString, V: ToString>( username: T, avatar_url: U, comment: V, ) -> Self
Sourcepub fn set_display_name<T: ToString>(self, display_name: T) -> Self
pub fn set_display_name<T: ToString>(self, display_name: T) -> Self
Sets the display name of the tweet author
Sourcepub fn set_replies<T: ToString>(self, replies: T) -> Self
pub fn set_replies<T: ToString>(self, replies: T) -> Self
Sets the tweet reply amount or text
Sourcepub fn set_retweets<T: ToString>(self, retweets: T) -> Self
pub fn set_retweets<T: ToString>(self, retweets: T) -> Self
Sets the tweet retweet amount or text
Sourcepub fn set_dark_theme(self, dark_theme: bool) -> Self
pub fn set_dark_theme(self, dark_theme: bool) -> Self
Sets whether to use dark theme instead
Trait Implementations§
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