Struct lemmy_db_schema::aggregates::structs::PostAggregates
source · pub struct PostAggregates {Show 17 fields
pub post_id: PostId,
pub comments: i64,
pub score: i64,
pub upvotes: i64,
pub downvotes: i64,
pub published: DateTime<Utc>,
pub newest_comment_time_necro: DateTime<Utc>,
pub newest_comment_time: DateTime<Utc>,
pub featured_community: bool,
pub featured_local: bool,
pub hot_rank: f64,
pub hot_rank_active: f64,
pub community_id: CommunityId,
pub creator_id: PersonId,
pub controversy_rank: f64,
pub instance_id: InstanceId,
pub scaled_rank: f64,
}
Expand description
Aggregate data for a post.
Fields§
§post_id: PostId
§comments: i64
§score: i64
§upvotes: i64
§downvotes: i64
§published: DateTime<Utc>
§newest_comment_time_necro: DateTime<Utc>
A newest comment time, limited to 2 days, to prevent necrobumping
newest_comment_time: DateTime<Utc>
The time of the newest comment in the post.
featured_community: bool
If the post is featured on the community.
featured_local: bool
If the post is featured on the site / to local.
hot_rank: f64
§hot_rank_active: f64
§community_id: CommunityId
§creator_id: PersonId
§controversy_rank: f64
§instance_id: InstanceId
§scaled_rank: f64
A rank that amplifies smaller communities
Trait Implementations§
source§impl Clone for PostAggregates
impl Clone for PostAggregates
source§fn clone(&self) -> PostAggregates
fn clone(&self) -> PostAggregates
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PostAggregates
impl Debug for PostAggregates
source§impl<'de> Deserialize<'de> for PostAggregates
impl<'de> Deserialize<'de> for PostAggregates
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
source§impl PartialEq for PostAggregates
impl PartialEq for PostAggregates
source§fn eq(&self, other: &PostAggregates) -> bool
fn eq(&self, other: &PostAggregates) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PostAggregates
impl Serialize for PostAggregates
impl StructuralPartialEq for PostAggregates
Auto Trait Implementations§
impl Freeze for PostAggregates
impl RefUnwindSafe for PostAggregates
impl Send for PostAggregates
impl Sync for PostAggregates
impl Unpin for PostAggregates
impl UnwindSafe for PostAggregates
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