[−][src]Struct tgbot::types::InputMessageContentText
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]
fn clone(&self) -> InputMessageContentText
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for InputMessageContentText
[src]
impl From<InputMessageContentText> for InputMessageContent
[src]
fn from(original: InputMessageContentText) -> InputMessageContent
[src]
impl Serialize for InputMessageContentText
[src]
Auto Trait Implementations
impl RefUnwindSafe for InputMessageContentText
impl Send for InputMessageContentText
impl Sync for InputMessageContentText
impl Unpin for InputMessageContentText
impl UnwindSafe for InputMessageContentText
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,