pub struct CreateCommentRequest {
pub comment_text: String,
pub comment: Vec<CommentBlock>,
}Fields§
§comment_text: StringPlain-text body. ClickUp requires this field and uses it as the
fallback / notification text. It is run through a lossy auto-formatter
for rendering, so the structured comment array below is what actually
drives clean rich-text display.
comment: Vec<CommentBlock>Structured rich-text runs (Quill Delta shape). When present, ClickUp
renders these instead of auto-formatting comment_text, so inline
code, code blocks and lists display correctly without fragmenting
prose. Built from the markdown body by
crate::comment_format::markdown_to_comment_blocks.
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
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