[−][src]Struct tbot::types::inline_query::result::article::Article
Represents an InlineQueryResultArticle
.
Methods
impl<'a> Article<'a>
[src]
pub fn new(
title: &'a str,
input_message_content: impl Into<InputMessageContent<'a>>
) -> Self
[src]
title: &'a str,
input_message_content: impl Into<InputMessageContent<'a>>
) -> Self
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> PartialEq<Article<'a>> for Article<'a>
[src]
impl<'a> From<Article<'a>> for Kind<'a>
[src]
impl<'a> Copy for Article<'a>
[src]
impl<'a> Debug for Article<'a>
[src]
impl<'a> Serialize for Article<'a>
[src]
Auto Trait Implementations
impl<'a> Send for Article<'a>
impl<'a> Unpin for Article<'a>
impl<'a> Sync for Article<'a>
impl<'a> UnwindSafe for Article<'a>
impl<'a> RefUnwindSafe for Article<'a>
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,