pub struct CommentResponse {
pub comment: Box<Comment>,
}Expand description
CommentResponse : Single-comment response (GET …/comments/:commentId).
Fields§
§comment: Box<Comment>Implementations§
Source§impl CommentResponse
impl CommentResponse
Sourcepub fn new(comment: Comment) -> CommentResponse
pub fn new(comment: Comment) -> CommentResponse
Single-comment response (GET …/comments/:commentId).
Trait Implementations§
Source§impl Clone for CommentResponse
impl Clone for CommentResponse
Source§fn clone(&self) -> CommentResponse
fn clone(&self) -> CommentResponse
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 CommentResponse
impl Debug for CommentResponse
Source§impl Default for CommentResponse
impl Default for CommentResponse
Source§fn default() -> CommentResponse
fn default() -> CommentResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommentResponse
impl<'de> Deserialize<'de> for CommentResponse
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 CommentResponse
impl PartialEq for CommentResponse
Source§fn eq(&self, other: &CommentResponse) -> bool
fn eq(&self, other: &CommentResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CommentResponse
impl Serialize for CommentResponse
impl StructuralPartialEq for CommentResponse
Auto Trait Implementations§
impl Freeze for CommentResponse
impl RefUnwindSafe for CommentResponse
impl Send for CommentResponse
impl Sync for CommentResponse
impl Unpin for CommentResponse
impl UnsafeUnpin for CommentResponse
impl UnwindSafe for CommentResponse
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