Struct some_random_api::Tweet
source · pub struct Tweet {
pub username: String,
pub avatar_url: String,
pub display_name: String,
pub comment: String,
pub replies: String,
pub retweets: String,
pub theme: String,
}
Fields§
§username: String
§avatar_url: String
§display_name: String
§comment: String
§replies: String
§retweets: 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
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§
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