pub struct BulletTextFormat {
pub bold: bool,
pub italic: bool,
pub underline: bool,
pub strikethrough: bool,
pub subscript: bool,
pub superscript: bool,
pub color: Option<String>,
pub highlight: Option<String>,
pub font_size: Option<u32>,
pub font_family: Option<String>,
}Expand description
Text formatting for bullet points
Fields§
§bold: bool§italic: bool§underline: bool§strikethrough: bool§subscript: bool§superscript: bool§color: Option<String>§highlight: Option<String>§font_size: Option<u32>§font_family: Option<String>Implementations§
Source§impl BulletTextFormat
impl BulletTextFormat
pub fn new() -> Self
pub fn bold(self) -> Self
pub fn italic(self) -> Self
pub fn underline(self) -> Self
pub fn strikethrough(self) -> Self
pub fn subscript(self) -> Self
pub fn superscript(self) -> Self
pub fn color(self, hex: &str) -> Self
pub fn highlight(self, hex: &str) -> Self
pub fn font_size(self, size: u32) -> Self
pub fn font_family(self, family: &str) -> Self
Trait Implementations§
Source§impl Clone for BulletTextFormat
impl Clone for BulletTextFormat
Source§fn clone(&self) -> BulletTextFormat
fn clone(&self) -> BulletTextFormat
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 BulletTextFormat
impl Debug for BulletTextFormat
Source§impl Default for BulletTextFormat
impl Default for BulletTextFormat
Source§fn default() -> BulletTextFormat
fn default() -> BulletTextFormat
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BulletTextFormat
impl RefUnwindSafe for BulletTextFormat
impl Send for BulletTextFormat
impl Sync for BulletTextFormat
impl Unpin for BulletTextFormat
impl UnwindSafe for BulletTextFormat
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