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