Struct sfr_types::RichTextElementText
source · pub struct RichTextElementText {
pub text: String,
pub style: Option<RichTextStyle>,
}Expand description
The following are the properties of the text object type in the elements array.
Fields§
§text: StringThe text shown to the user.
style: Option<RichTextStyle>An object containing four boolean fields, none of which are required: bold, italic, strike, and code.
Trait Implementations§
source§impl Clone for RichTextElementText
impl Clone for RichTextElementText
source§fn clone(&self) -> RichTextElementText
fn clone(&self) -> RichTextElementText
Returns a copy 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 RichTextElementText
impl Debug for RichTextElementText
Auto Trait Implementations§
impl Freeze for RichTextElementText
impl RefUnwindSafe for RichTextElementText
impl Send for RichTextElementText
impl Sync for RichTextElementText
impl Unpin for RichTextElementText
impl UnwindSafe for RichTextElementText
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)