[][src]Struct tgbot::types::InputMessageContentText

pub struct InputMessageContentText { /* fields omitted */ }

Text message to be sent as the result of an inline query

Methods

impl InputMessageContentText[src]

pub fn new<S: Into<String>>(message_text: S) -> Self[src]

Creates a new InputMessageContentText with empty optional parameters

Arguments

  • message_text - Text of the message to be sent, 1-4096 characters

pub fn parse_mode(self, parse_mode: ParseMode) -> Self[src]

Parse mode

pub fn disable_web_page_preview(self, disable_web_page_preview: bool) -> Self[src]

Disables link previews for links in the sent message

Trait Implementations

impl Clone for InputMessageContentText[src]

impl Debug for InputMessageContentText[src]

impl From<InputMessageContentText> for InputMessageContent[src]

impl Serialize for InputMessageContentText[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

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.