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
sourceimpl AsRef<TextParseMode> for TextParseMode
impl AsRef<TextParseMode> for TextParseMode
sourcefn as_ref(&self) -> &TextParseMode
fn as_ref(&self) -> &TextParseMode
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for TextParseMode
impl Clone for TextParseMode
sourcefn clone(&self) -> TextParseMode
fn clone(&self) -> TextParseMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for TextParseMode
impl Debug for TextParseMode
sourceimpl Default for TextParseMode
impl Default for TextParseMode
sourceimpl<'de> Deserialize<'de> for TextParseMode
impl<'de> Deserialize<'de> for TextParseMode
sourcefn 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
sourceimpl Serialize for TextParseMode
impl Serialize for TextParseMode
Auto Trait Implementations
impl RefUnwindSafe for TextParseMode
impl Send for TextParseMode
impl Sync for TextParseMode
impl Unpin for TextParseMode
impl UnwindSafe for TextParseMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more