pub struct CommentAttributes {
pub bold: bool,
pub italic: bool,
pub code: bool,
pub link: Option<String>,
pub code_block: Option<CodeBlockAttr>,
pub list: Option<ListAttr>,
}Expand description
Formatting marks for a single run. Inline marks (code, bold) sit on a
content run; block marks (code_block, list) sit on a "\n" separator.
Fields§
§bold: bool§italic: bool§code: bool§link: Option<String>Hyperlink target URL for this run’s text (inline [text](url)).
code_block: Option<CodeBlockAttr>Block-level code fence. ClickUp’s shape is {"code-block": "plain"}.
list: Option<ListAttr>List membership. ClickUp’s shape is
{"list": "bullet" | "ordered" | "checked" | "unchecked"}.
Trait Implementations§
Source§impl Clone for CommentAttributes
impl Clone for CommentAttributes
Source§fn clone(&self) -> CommentAttributes
fn clone(&self) -> CommentAttributes
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 CommentAttributes
impl Debug for CommentAttributes
Source§impl Default for CommentAttributes
impl Default for CommentAttributes
Source§fn default() -> CommentAttributes
fn default() -> CommentAttributes
Returns the “default value” for a type. Read more
Source§impl PartialEq for CommentAttributes
impl PartialEq for CommentAttributes
Source§fn eq(&self, other: &CommentAttributes) -> bool
fn eq(&self, other: &CommentAttributes) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CommentAttributes
impl Serialize for CommentAttributes
impl StructuralPartialEq for CommentAttributes
Auto Trait Implementations§
impl Freeze for CommentAttributes
impl RefUnwindSafe for CommentAttributes
impl Send for CommentAttributes
impl Sync for CommentAttributes
impl Unpin for CommentAttributes
impl UnsafeUnpin for CommentAttributes
impl UnwindSafe for CommentAttributes
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