[][src]Struct telebot::objects::input_message_content::Text

pub struct Text {
    pub message_text: String,
    pub parse_mode: Option<String>,
    pub disable_web_page_preview: Option<Boolean>,
}

Fields

message_text: Stringparse_mode: Option<String>disable_web_page_preview: Option<Boolean>

Methods

impl Text[src]

pub fn new(_message_text: String) -> Text[src]

pub fn parse_mode<S>(self, val: S) -> Self where
    S: Into<String>, 
[src]

pub fn disable_web_page_preview<S>(self, val: S) -> Self where
    S: Into<Boolean>, 
[src]

Trait Implementations

impl Debug for Text[src]

impl Serialize for Text[src]

impl<'de> Deserialize<'de> for Text[src]

Auto Trait Implementations

impl Send for Text

impl Sync for Text

impl Unpin for Text

impl UnwindSafe for Text

impl RefUnwindSafe for Text

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]