pub struct HotPostCard {
pub post_id: String,
pub title: String,
pub submolt_name: String,
pub author: String,
pub upvotes: i64,
pub comment_count: i64,
pub url: String,
}Fields§
§post_id: String§title: String§submolt_name: String§upvotes: i64§comment_count: i64§url: StringTrait Implementations§
Source§impl Clone for HotPostCard
impl Clone for HotPostCard
Source§fn clone(&self) -> HotPostCard
fn clone(&self) -> HotPostCard
Returns a duplicate 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 HotPostCard
impl Debug for HotPostCard
Source§impl Default for HotPostCard
impl Default for HotPostCard
Source§fn default() -> HotPostCard
fn default() -> HotPostCard
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HotPostCard
impl<'de> Deserialize<'de> for HotPostCard
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 HotPostCard
impl RefUnwindSafe for HotPostCard
impl Send for HotPostCard
impl Sync for HotPostCard
impl Unpin for HotPostCard
impl UnsafeUnpin for HotPostCard
impl UnwindSafe for HotPostCard
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