pub enum MessageTextFormat {
}Expand description
Message text struct
Variants§
Plain(String)
Plain text
Bold(String)
Bold text
Italic(String)
Italic text
Underline(String)
Underline text
Strikethrough(String)
Strikethrough text
Link(String, String)
Inline URL
Mention(ChatId)
Inline mention of a user
Code(String)
Code formatted text
Pre(String, Option<String>)
Pre-formatted fixed-width test block
OrderedList(Vec<String>)
Ordered list
UnOrderedList(Vec<String>)
Unordered list
Quote(String)
Quote text
None
Trait Implementations§
Source§impl Clone for MessageTextFormat
impl Clone for MessageTextFormat
Source§fn clone(&self) -> MessageTextFormat
fn clone(&self) -> MessageTextFormat
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 MessageTextFormat
impl Debug for MessageTextFormat
Auto Trait Implementations§
impl Freeze for MessageTextFormat
impl RefUnwindSafe for MessageTextFormat
impl Send for MessageTextFormat
impl Sync for MessageTextFormat
impl Unpin for MessageTextFormat
impl UnwindSafe for MessageTextFormat
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