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
Source§type Value = AnswerInlineQuery
type Value = AnswerInlineQuery
Type to be built
Auto Trait Implementations§
impl Freeze for AnswerInlineQueryBuilder
impl RefUnwindSafe for AnswerInlineQueryBuilder
impl Send for AnswerInlineQueryBuilder
impl Sync for AnswerInlineQueryBuilder
impl Unpin for AnswerInlineQueryBuilder
impl UnwindSafe for AnswerInlineQueryBuilder
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