pub struct Tweet {
pub id: String,
pub text: String,
pub author_id: Option<String>,
pub created_at: Option<String>,
pub public_metrics: Option<TweetMetrics>,
pub context_annotations: Option<Vec<ContextAnnotation>>,
pub referenced_tweets: Option<Vec<ReferencedTweet>>,
}
Expand description
Tweet information from X API
Fields§
§id: String
§text: String
§created_at: Option<String>
§public_metrics: Option<TweetMetrics>
§context_annotations: Option<Vec<ContextAnnotation>>
§referenced_tweets: Option<Vec<ReferencedTweet>>
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