Struct carapax::types::MenuButtonWebApp
source · pub struct MenuButtonWebApp {
pub text: String,
pub web_app: WebAppInfo,
}
Expand description
Represents a menu button, which launches a Web App.
Fields§
§text: String
Text on the button.
web_app: WebAppInfo
Description of the Web App that will be launched when the user presses the button.
The Web App will be able to send an arbitrary message on behalf of the user
using the method answerWebAppQuery
.
Implementations§
source§impl MenuButtonWebApp
impl MenuButtonWebApp
sourcepub fn new<T>(text: T, web_app: WebAppInfo) -> MenuButtonWebApp
pub fn new<T>(text: T, web_app: WebAppInfo) -> MenuButtonWebApp
Trait Implementations§
source§impl Clone for MenuButtonWebApp
impl Clone for MenuButtonWebApp
source§fn clone(&self) -> MenuButtonWebApp
fn clone(&self) -> MenuButtonWebApp
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 MenuButtonWebApp
impl Debug for MenuButtonWebApp
source§impl<'de> Deserialize<'de> for MenuButtonWebApp
impl<'de> Deserialize<'de> for MenuButtonWebApp
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<MenuButtonWebApp, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<MenuButtonWebApp, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for MenuButtonWebApp
impl PartialEq for MenuButtonWebApp
source§fn eq(&self, other: &MenuButtonWebApp) -> bool
fn eq(&self, other: &MenuButtonWebApp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MenuButtonWebApp
impl PartialOrd for MenuButtonWebApp
source§fn partial_cmp(&self, other: &MenuButtonWebApp) -> Option<Ordering>
fn partial_cmp(&self, other: &MenuButtonWebApp) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for MenuButtonWebApp
impl Serialize for MenuButtonWebApp
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for MenuButtonWebApp
Auto Trait Implementations§
impl Freeze for MenuButtonWebApp
impl RefUnwindSafe for MenuButtonWebApp
impl Send for MenuButtonWebApp
impl Sync for MenuButtonWebApp
impl Unpin for MenuButtonWebApp
impl UnwindSafe for MenuButtonWebApp
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more