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

pub struct Article { /* fields omitted */ }

Represents an InlineQueryResultArticle.


impl Article[src]

pub fn new(
    title: impl Into<String>,
    input_message_content: impl Into<InputMessageContent>
) -> Self

Constructs an Article.

pub fn url(self, url: impl Into<String>) -> Self[src]

Configures the URL of article.

pub const fn is_url_hidden(self, is_hidden: bool) -> Self[src]

Configures whether the article’s URL is hidden.

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

Configures the thumb of the article.

pub fn description(self, description: impl Into<String>) -> Self[src]

Configures the description of the result.

Trait Implementations

impl Clone for Article[src]

impl Debug for Article[src]

impl From<Article> for Kind[src]

impl PartialEq<Article> for Article[src]

impl Serialize for Article[src]

impl StructuralPartialEq for Article[src]

Auto Trait Implementations

impl RefUnwindSafe for Article

impl Send for Article

impl Sync for Article

impl Unpin for Article

impl UnwindSafe for Article

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.