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 switch_pm_text: Option<String>,
pub switch_pm_parameter: Option<String>,
}
Fields
inline_query_id: String
results: Vec<InlineQueryResult>
cache_time: Option<u32>
is_personal: Option<bool>
next_offset: Option<String>
switch_pm_text: Option<String>
switch_pm_parameter: Option<String>
Implementations
sourceimpl 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), .switch_pm_text(...)
(optional), .switch_pm_parameter(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of AnswerInlineQueryParams
.
Trait Implementations
sourceimpl Clone for AnswerInlineQueryParams
impl Clone for AnswerInlineQueryParams
sourcefn clone(&self) -> AnswerInlineQueryParams
fn clone(&self) -> AnswerInlineQueryParams
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AnswerInlineQueryParams
impl Debug for AnswerInlineQueryParams
sourceimpl<'de> Deserialize<'de> for AnswerInlineQueryParams
impl<'de> Deserialize<'de> for AnswerInlineQueryParams
sourcefn 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
sourceimpl PartialEq<AnswerInlineQueryParams> for AnswerInlineQueryParams
impl PartialEq<AnswerInlineQueryParams> for AnswerInlineQueryParams
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &AnswerInlineQueryParams) -> bool
fn ne(&self, other: &AnswerInlineQueryParams) -> bool
This method tests for !=
.
sourceimpl Serialize for AnswerInlineQueryParams
impl Serialize for AnswerInlineQueryParams
impl StructuralPartialEq for AnswerInlineQueryParams
Auto Trait Implementations
impl RefUnwindSafe for AnswerInlineQueryParams
impl Send for AnswerInlineQueryParams
impl Sync for AnswerInlineQueryParams
impl Unpin for AnswerInlineQueryParams
impl UnwindSafe for AnswerInlineQueryParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more