pub struct RichTextRun {
pub text: String,
pub font: Option<String>,
pub size: Option<f64>,
pub bold: bool,
pub italic: bool,
pub color: Option<String>,
}Expand description
A single formatted text segment within a rich text cell.
Fields§
§text: StringThe plain text content of this run.
font: Option<String>Font name (e.g., “Calibri”).
size: Option<f64>Font size in points.
bold: boolWhether the text is bold.
italic: boolWhether the text is italic.
color: Option<String>Font color as an RGB hex string (e.g., “#FF0000”).
Trait Implementations§
Source§impl Clone for RichTextRun
impl Clone for RichTextRun
Source§fn clone(&self) -> RichTextRun
fn clone(&self) -> RichTextRun
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 RichTextRun
impl Debug for RichTextRun
Source§impl PartialEq for RichTextRun
impl PartialEq for RichTextRun
impl StructuralPartialEq for RichTextRun
Auto Trait Implementations§
impl Freeze for RichTextRun
impl RefUnwindSafe for RichTextRun
impl Send for RichTextRun
impl Sync for RichTextRun
impl Unpin for RichTextRun
impl UnwindSafe for RichTextRun
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