Struct telegram_bot2::models::AnswerInlineQueryBuilder
source · pub struct AnswerInlineQueryBuilder { /* private fields */ }Expand description
Builder for the AnswerInlineQuery structure
Implementations§
source§impl AnswerInlineQueryBuilder
impl AnswerInlineQueryBuilder
sourcepub fn new(inline_query_id: String) -> Self
pub fn new(inline_query_id: String) -> Self
Instantiate the builder with the fields inline_query_id, results, cache_time, is_personal, next_offset, switch_pm_text, switch_pm_parameter
sourcepub fn results(self, val: Vec<InlineQueryResult>) -> Self
pub fn results(self, val: Vec<InlineQueryResult>) -> Self
Set the field results to the given value
sourcepub fn cache_time(self, val: i64) -> Self
pub fn cache_time(self, val: i64) -> Self
Set the field cache_time to the given value
sourcepub fn is_personal(self, val: bool) -> Self
pub fn is_personal(self, val: bool) -> Self
Set the field is_personal to the given value
sourcepub fn next_offset(self, val: String) -> Self
pub fn next_offset(self, val: String) -> Self
Set the field next_offset to the given value
sourcepub fn switch_pm_text(self, val: String) -> Self
pub fn switch_pm_text(self, val: String) -> Self
Set the field switch_pm_text to the given value
sourcepub fn switch_pm_parameter(self, val: String) -> Self
pub fn switch_pm_parameter(self, val: String) -> Self
Set the field switch_pm_parameter to the given value
Trait Implementations§
source§impl Builder for AnswerInlineQueryBuilder
impl Builder for AnswerInlineQueryBuilder
§type Value = AnswerInlineQuery
type Value = AnswerInlineQuery
Type to be built