pub enum Text<'a> {
Bold(&'a str),
Italic(&'a str),
Strike(&'a str),
Monospace(&'a str),
Secret(&'a str),
Red(&'a str),
Green(&'a str),
Blue(&'a str),
Yellow(&'a str),
Cyan(&'a str),
Magenta(&'a str),
}Expand description
Represents a styled text(applies SimpleX-Chat markdown syntax to the given substr)
Variants§
Bold(&'a str)
Italic(&'a str)
Strike(&'a str)
Monospace(&'a str)
Secret(&'a str)
Red(&'a str)
Green(&'a str)
Blue(&'a str)
Yellow(&'a str)
Cyan(&'a str)
Magenta(&'a str)
Trait Implementations§
Source§impl MessageLike for Text<'_>
impl MessageLike for Text<'_>
type Kind = TextKind
fn into_builder_parts(self) -> (ComposedMessage, Self::Kind)
Auto Trait Implementations§
impl<'a> Freeze for Text<'a>
impl<'a> RefUnwindSafe for Text<'a>
impl<'a> Send for Text<'a>
impl<'a> Sync for Text<'a>
impl<'a> Unpin for Text<'a>
impl<'a> UnsafeUnpin for Text<'a>
impl<'a> UnwindSafe for Text<'a>
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