pub struct ScoringData {
pub time_posted: i64,
pub likes: i64,
}Expand description
Data used for scoring. Pass into score_post.
Fields§
§time_posted: i64Unix timestamp in seconds that the post was submitted.
likes: i64Number of likes the post has received in total.
Auto Trait Implementations§
impl Freeze for ScoringData
impl RefUnwindSafe for ScoringData
impl Send for ScoringData
impl Sync for ScoringData
impl Unpin for ScoringData
impl UnwindSafe for ScoringData
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