pub trait AnswerInlineQuerySetters: HasPayload<Payload = AnswerInlineQuery> + Sized {
// Provided methods
fn inline_query_id<T>(self, value: T) -> Self
where T: Into<String> { ... }
fn results<T>(self, value: T) -> Self
where T: IntoIterator<Item = InlineQueryResult> { ... }
fn cache_time(self, value: u32) -> Self { ... }
fn is_personal(self, value: bool) -> Self { ... }
fn next_offset<T>(self, value: T) -> Self
where T: Into<String> { ... }
fn switch_pm_text<T>(self, value: T) -> Self
where T: Into<String> { ... }
fn switch_pm_parameter<T>(self, value: T) -> Self
where T: Into<String> { ... }
}
Expand description
Setters for fields of AnswerInlineQuery
Provided Methods§
sourcefn inline_query_id<T>(self, value: T) -> Selfwhere
T: Into<String>,
fn inline_query_id<T>(self, value: T) -> Selfwhere T: Into<String>,
Setter for inline_query_id
field.
sourcefn results<T>(self, value: T) -> Selfwhere
T: IntoIterator<Item = InlineQueryResult>,
fn results<T>(self, value: T) -> Selfwhere T: IntoIterator<Item = InlineQueryResult>,
Setter for results
field.
sourcefn cache_time(self, value: u32) -> Self
fn cache_time(self, value: u32) -> Self
Setter for cache_time
field.
sourcefn is_personal(self, value: bool) -> Self
fn is_personal(self, value: bool) -> Self
Setter for is_personal
field.
sourcefn next_offset<T>(self, value: T) -> Selfwhere
T: Into<String>,
fn next_offset<T>(self, value: T) -> Selfwhere T: Into<String>,
Setter for next_offset
field.
sourcefn switch_pm_text<T>(self, value: T) -> Selfwhere
T: Into<String>,
fn switch_pm_text<T>(self, value: T) -> Selfwhere T: Into<String>,
Setter for switch_pm_text
field.
sourcefn switch_pm_parameter<T>(self, value: T) -> Selfwhere
T: Into<String>,
fn switch_pm_parameter<T>(self, value: T) -> Selfwhere T: Into<String>,
Setter for switch_pm_parameter
field.