pub struct SamplePost {
pub id: String,
pub title: String,
pub subreddit: String,
pub upvotes: i32,
pub comments: i32,
pub created: String,
}Fields§
§id: String§title: String§subreddit: String§upvotes: i32§comments: i32§created: StringTrait Implementations§
Source§impl Clone for SamplePost
impl Clone for SamplePost
Source§fn clone(&self) -> SamplePost
fn clone(&self) -> SamplePost
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 SamplePost
impl Debug for SamplePost
Source§impl<'de> Deserialize<'de> for SamplePost
impl<'de> Deserialize<'de> for SamplePost
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 SamplePost
impl RefUnwindSafe for SamplePost
impl Send for SamplePost
impl Sync for SamplePost
impl Unpin for SamplePost
impl UnwindSafe for SamplePost
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