pub struct CommentResource {
pub id: Uuid,
pub parent_id: Uuid,
pub author_id: Uuid,
pub body: String,
pub upvote: i32,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub user_vote: Option<i16>,
pub author: Option<AuthorResource>,
}Fields§
§id: Uuid§parent_id: Uuid§body: String§upvote: i32§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§user_vote: Option<i16>Trait Implementations§
impl ApiResource for CommentResource
Source§impl Clone for CommentResource
impl Clone for CommentResource
Source§fn clone(&self) -> CommentResource
fn clone(&self) -> CommentResource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommentResource
impl Debug for CommentResource
Source§impl<'de> Deserialize<'de> for CommentResource
impl<'de> Deserialize<'de> for CommentResource
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
impl Eq for CommentResource
Source§impl PartialEq for CommentResource
impl PartialEq for CommentResource
Source§fn eq(&self, other: &CommentResource) -> bool
fn eq(&self, other: &CommentResource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CommentResource
impl Serialize for CommentResource
impl StructuralPartialEq for CommentResource
Auto Trait Implementations§
impl Freeze for CommentResource
impl RefUnwindSafe for CommentResource
impl Send for CommentResource
impl Sync for CommentResource
impl Unpin for CommentResource
impl UnsafeUnpin for CommentResource
impl UnwindSafe for CommentResource
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