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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more