pub enum TextParseMode {
HTML(TextParseModeHTML),
Markdown(TextParseModeMarkdown),
// some variants omitted
}
Expand description
Describes the way the text needs to be parsed for TextEntities
Variants§
HTML(TextParseModeHTML)
The text uses HTML-style formatting. The same as Telegram Bot API “HTML” parse mode
Markdown(TextParseModeMarkdown)
The text uses Markdown-style formatting
Implementations§
Trait Implementations§
Source§impl AsRef<TextParseMode> for TextParseMode
impl AsRef<TextParseMode> for TextParseMode
Source§fn as_ref(&self) -> &TextParseMode
fn as_ref(&self) -> &TextParseMode
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for TextParseMode
impl Clone for TextParseMode
Source§fn clone(&self) -> TextParseMode
fn clone(&self) -> TextParseMode
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 TextParseMode
impl Debug for TextParseMode
Source§impl Default for TextParseMode
impl Default for TextParseMode
Source§fn default() -> TextParseMode
fn default() -> TextParseMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextParseMode
impl<'de> Deserialize<'de> for TextParseMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TextParseMode
impl RefUnwindSafe for TextParseMode
impl Send for TextParseMode
impl Sync for TextParseMode
impl Unpin for TextParseMode
impl UnwindSafe for TextParseMode
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