pub struct Tweet<'a> {
pub text: String,
pub name: String,
pub retweets: &'a [u8],
pub favorites: &'a [u8],
pub id: &'a [u8],
}Expand description
Struct encapsulating tweets. Includes the text, name of the user, number of retweets, and number of favorites.
Fields§
§text: String§name: String§retweets: &'a [u8]§favorites: &'a [u8]§id: &'a [u8]Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Tweet<'a>
impl<'a> RefUnwindSafe for Tweet<'a>
impl<'a> Send for Tweet<'a>
impl<'a> Sync for Tweet<'a>
impl<'a> Unpin for Tweet<'a>
impl<'a> UnwindSafe for Tweet<'a>
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