[][src]Struct tbot::types::inline_query::result::article::Article

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

Represents an InlineQueryResultArticle.

Methods

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

pub fn new(
    title: &'a str,
    input_message_content: impl Into<InputMessageContent<'a>>
) -> Self
[src]

Constructs an Article.

pub fn url(self, url: &'a str) -> Self[src]

Configures the URL of article.

pub fn url_visibility(self, visibility: UrlVisibility) -> Self[src]

Configures the article's URL visibility.

pub fn thumb(self, thumb: Thumb<'a>) -> Self[src]

Configures the thumb of the article.

pub fn description(self, description: &'a str) -> Self[src]

Configures the description of the result.

Trait Implementations

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

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

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

impl<'a> From<Article<'a>> for Kind<'a>[src]

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

impl<'a> Serialize for Article<'a>[src]

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for Article<'a>

impl<'a> Send for Article<'a>

impl<'a> Sync for Article<'a>

impl<'a> Unpin for Article<'a>

impl<'a> UnwindSafe for Article<'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<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.