pub struct CreateCommentRequest {
pub body: Option<String>,
pub content: Option<String>,
pub parent_comment_id: Option<Option<String>>,
pub block_id: Option<Option<String>>,
}Expand description
CreateCommentRequest : Either body (preferred) or content (renderer parity with tasks) is required. Empty parentCommentId/blockId strings are treated as null.
Fields§
§body: Option<String>§content: Option<String>§parent_comment_id: Option<Option<String>>§block_id: Option<Option<String>>Implementations§
Source§impl CreateCommentRequest
impl CreateCommentRequest
Sourcepub fn new() -> CreateCommentRequest
pub fn new() -> CreateCommentRequest
Either body (preferred) or content (renderer parity with tasks) is required. Empty parentCommentId/blockId strings are treated as null.
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 (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 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<'de> Deserialize<'de> for CreateCommentRequest
impl<'de> Deserialize<'de> for CreateCommentRequest
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 CreateCommentRequest
impl PartialEq for CreateCommentRequest
Source§fn eq(&self, other: &CreateCommentRequest) -> bool
fn eq(&self, other: &CreateCommentRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CreateCommentRequest
impl Serialize 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 UnsafeUnpin 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