pub struct CreateCommentLike {
pub comment_id: CommentId,
pub score: i16,
}Expand description
Like a comment.
Fields§
§comment_id: CommentId§score: i16Must be -1, 0, or 1 .
Trait Implementations§
Source§impl Clone for CreateCommentLike
impl Clone for CreateCommentLike
Source§fn clone(&self) -> CreateCommentLike
fn clone(&self) -> CreateCommentLike
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 CreateCommentLike
impl Debug for CreateCommentLike
Source§impl Default for CreateCommentLike
impl Default for CreateCommentLike
Source§fn default() -> CreateCommentLike
fn default() -> CreateCommentLike
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateCommentLike
impl<'de> Deserialize<'de> for CreateCommentLike
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 Hash for CreateCommentLike
impl Hash for CreateCommentLike
Source§impl PartialEq for CreateCommentLike
impl PartialEq for CreateCommentLike
Source§impl Serialize for CreateCommentLike
impl Serialize for CreateCommentLike
impl Copy for CreateCommentLike
impl Eq for CreateCommentLike
impl StructuralPartialEq for CreateCommentLike
Auto Trait Implementations§
impl Freeze for CreateCommentLike
impl RefUnwindSafe for CreateCommentLike
impl Send for CreateCommentLike
impl Sync for CreateCommentLike
impl Unpin for CreateCommentLike
impl UnwindSafe for CreateCommentLike
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