[][src]Struct carapax::prelude::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>(message_text: S) -> InputMessageContentText where
    S: Into<String>, 
[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) -> InputMessageContentText[src]

Parse mode

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

Disables link previews for links in the sent message

Trait Implementations

impl From<InputMessageContentText> for InputMessageContent[src]

impl Serialize for InputMessageContentText[src]

impl Debug for InputMessageContentText[src]

impl Clone for InputMessageContentText[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T