Enum rust_tdlib::types::TextParseMode
source · 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