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