Struct botapi::gen_types::InlineQueryResultArticleBuilder
source · pub struct InlineQueryResultArticleBuilder { /* private fields */ }Expand description
Represents a link to an article or web page.
Implementations§
source§impl InlineQueryResultArticleBuilder
impl InlineQueryResultArticleBuilder
pub fn new( id: String, title: String, input_message_content: InputMessageContent ) -> Self
sourcepub fn set_input_message_content(
self,
input_message_content: InputMessageContent
) -> Self
pub fn set_input_message_content( self, input_message_content: InputMessageContent ) -> Self
Content of the message to be sent
sourcepub fn set_reply_markup(self, reply_markup: InlineKeyboardMarkup) -> Self
pub fn set_reply_markup(self, reply_markup: InlineKeyboardMarkup) -> Self
Optional. Inline keyboard attached to the message
sourcepub fn set_hide_url(self, hide_url: bool) -> Self
pub fn set_hide_url(self, hide_url: bool) -> Self
Optional. Pass True if you don’t want the URL to be shown in the message
sourcepub fn set_description(self, description: String) -> Self
pub fn set_description(self, description: String) -> Self
Optional. Short description of the result
sourcepub fn set_thumbnail_url(self, thumbnail_url: String) -> Self
pub fn set_thumbnail_url(self, thumbnail_url: String) -> Self
Optional. Url of the thumbnail for the result
sourcepub fn set_thumbnail_width(self, thumbnail_width: i64) -> Self
pub fn set_thumbnail_width(self, thumbnail_width: i64) -> Self
Optional. Thumbnail width
sourcepub fn set_thumbnail_height(self, thumbnail_height: i64) -> Self
pub fn set_thumbnail_height(self, thumbnail_height: i64) -> Self
Optional. Thumbnail height
pub fn build(self) -> InlineQueryResultArticle
Trait Implementations§
source§impl Clone for InlineQueryResultArticleBuilder
impl Clone for InlineQueryResultArticleBuilder
source§fn clone(&self) -> InlineQueryResultArticleBuilder
fn clone(&self) -> InlineQueryResultArticleBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for InlineQueryResultArticleBuilder
impl Default for InlineQueryResultArticleBuilder
source§fn default() -> InlineQueryResultArticleBuilder
fn default() -> InlineQueryResultArticleBuilder
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InlineQueryResultArticleBuilder
impl<'de> Deserialize<'de> for InlineQueryResultArticleBuilder
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for InlineQueryResultArticleBuilder
impl Send for InlineQueryResultArticleBuilder
impl Sync for InlineQueryResultArticleBuilder
impl Unpin for InlineQueryResultArticleBuilder
impl UnwindSafe for InlineQueryResultArticleBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more