[][src]Struct tbot::types::parameters::Text

#[must_use]pub struct Text<'a> { /* fields omitted */ }

Represents input text.

Implementations

impl<'a> Text<'a>[src]

pub const fn with_plain(text: &'a str) -> Self[src]

Consructs new Text without any parse mode.

pub fn with_markdown(text: &'a str) -> Self[src]

Constructs new Text with Markdown parse mode.

pub fn with_markdown_v2(text: &'a str) -> Self[src]

Constructs new Text with MarkdownV2 parse mode.

pub fn with_html(text: &'a str) -> Self[src]

Constructs new Text with HTML parse mode.

#[must_use]pub fn is_plain(self) -> bool[src]

Checks if parse mode isn't set.

#[must_use]pub fn is_markdown_v2(self) -> bool[src]

Checks if parse mode is MarkdownV2.

#[must_use]pub fn is_markdown(self) -> bool[src]

Checks if parse mode is Markdown.

#[must_use]pub fn is_html(self) -> bool[src]

Checks if parse mode is Html.

Trait Implementations

impl<'a> Clone for Text<'a>[src]

impl<'a> Copy for Text<'a>[src]

impl<'a> Debug for Text<'a>[src]

impl<'a> Eq for Text<'a>[src]

impl<'a> From<&'a String> for Text<'a>[src]

impl<'a> From<&'a str> for Text<'a>[src]

impl<'a> Hash for Text<'a>[src]

impl<'a> PartialEq<Text<'a>> for Text<'a>[src]

impl<'a> StructuralEq for Text<'a>[src]

impl<'a> StructuralPartialEq for Text<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Text<'a>

impl<'a> Send for Text<'a>

impl<'a> Sync for Text<'a>

impl<'a> Unpin for Text<'a>

impl<'a> UnwindSafe for Text<'a>

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument 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.

impl<T> WithSubscriber for T[src]