pub struct TweetData {
pub text: String,
pub created_at: String,
pub likes: u64,
pub retweets: u64,
pub replies: u64,
pub author_username: String,
pub author_followers: u64,
pub has_media: bool,
pub is_quote_tweet: bool,
}Expand description
Input data for scoring a tweet.
This struct decouples the scoring engine from specific API types, allowing the engine to be used with any data source.
Fields§
§text: StringThe tweet text content.
created_at: StringISO-8601 timestamp of when the tweet was created.
likes: u64Number of likes on the tweet.
retweets: u64Number of retweets.
replies: u64Number of replies.
Author’s username (for display).
Author’s follower count.
has_media: boolWhether the tweet has attached media (images, video, etc.).
is_quote_tweet: boolWhether the tweet is a quote tweet.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TweetData
impl RefUnwindSafe for TweetData
impl Send for TweetData
impl Sync for TweetData
impl Unpin for TweetData
impl UnsafeUnpin for TweetData
impl UnwindSafe for TweetData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more