Struct frankenstein::api_params::AnswerInlineQueryParams
source · pub struct AnswerInlineQueryParams {
pub inline_query_id: String,
pub results: Vec<InlineQueryResult>,
pub cache_time: Option<u32>,
pub is_personal: Option<bool>,
pub next_offset: Option<String>,
pub button: Option<InlineQueryResultsButton>,
}
Fields§
§inline_query_id: String
§results: Vec<InlineQueryResult>
§cache_time: Option<u32>
§is_personal: Option<bool>
§next_offset: Option<String>
Implementations§
source§impl AnswerInlineQueryParams
impl AnswerInlineQueryParams
sourcepub fn builder() -> AnswerInlineQueryParamsBuilder<((), (), (), (), (), ())>
pub fn builder() -> AnswerInlineQueryParamsBuilder<((), (), (), (), (), ())>
Create a builder for building AnswerInlineQueryParams
.
On the builder, call .inline_query_id(...)
, .results(...)
, .cache_time(...)
(optional), .is_personal(...)
(optional), .next_offset(...)
(optional), .button(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of AnswerInlineQueryParams
.
Trait Implementations§
source§impl Clone for AnswerInlineQueryParams
impl Clone for AnswerInlineQueryParams
source§fn clone(&self) -> AnswerInlineQueryParams
fn clone(&self) -> AnswerInlineQueryParams
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 Debug for AnswerInlineQueryParams
impl Debug for AnswerInlineQueryParams
source§impl<'de> Deserialize<'de> for AnswerInlineQueryParams
impl<'de> Deserialize<'de> for AnswerInlineQueryParams
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
source§impl PartialEq for AnswerInlineQueryParams
impl PartialEq for AnswerInlineQueryParams
source§fn eq(&self, other: &AnswerInlineQueryParams) -> bool
fn eq(&self, other: &AnswerInlineQueryParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AnswerInlineQueryParams
impl Serialize for AnswerInlineQueryParams
impl StructuralPartialEq for AnswerInlineQueryParams
Auto Trait Implementations§
impl Freeze for AnswerInlineQueryParams
impl RefUnwindSafe for AnswerInlineQueryParams
impl Send for AnswerInlineQueryParams
impl Sync for AnswerInlineQueryParams
impl Unpin for AnswerInlineQueryParams
impl UnwindSafe for AnswerInlineQueryParams
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