#[non_exhaustive]pub struct CreateCommentRequest {
pub parent: String,
pub comment: Option<Comment>,
/* private fields */
}Expand description
The request message for the CreateComment endpoint.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The name of the case to which the comment should be added.
comment: Option<Comment>Required. The comment to be added.
Implementations§
Source§impl CreateCommentRequest
impl CreateCommentRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_comment<T>(self, v: T) -> Self
pub fn set_comment<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_comment<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_comment<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CreateCommentRequest
impl Clone for CreateCommentRequest
Source§fn clone(&self) -> CreateCommentRequest
fn clone(&self) -> CreateCommentRequest
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 CreateCommentRequest
impl Debug for CreateCommentRequest
Source§impl Default for CreateCommentRequest
impl Default for CreateCommentRequest
Source§fn default() -> CreateCommentRequest
fn default() -> CreateCommentRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateCommentRequest
impl Message for CreateCommentRequest
Source§impl PartialEq for CreateCommentRequest
impl PartialEq for CreateCommentRequest
impl StructuralPartialEq for CreateCommentRequest
Auto Trait Implementations§
impl Freeze for CreateCommentRequest
impl RefUnwindSafe for CreateCommentRequest
impl Send for CreateCommentRequest
impl Sync for CreateCommentRequest
impl Unpin for CreateCommentRequest
impl UnwindSafe for CreateCommentRequest
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