Struct telegram_bot_api::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
sourceimpl MenuButtonWebApp
impl MenuButtonWebApp
pub fn new(text: String, web_app: WebAppInfo) -> Self
Trait Implementations
sourceimpl Clone for MenuButtonWebApp
impl Clone for MenuButtonWebApp
sourcefn clone(&self) -> MenuButtonWebApp
fn clone(&self) -> MenuButtonWebApp
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MenuButtonWebApp
impl Debug for MenuButtonWebApp
sourceimpl<'de> Deserialize<'de> for MenuButtonWebApp
impl<'de> Deserialize<'de> for MenuButtonWebApp
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 Serialize for MenuButtonWebApp
impl Serialize for MenuButtonWebApp
Auto Trait Implementations
impl RefUnwindSafe for MenuButtonWebApp
impl Send for MenuButtonWebApp
impl Sync for MenuButtonWebApp
impl Unpin for MenuButtonWebApp
impl UnwindSafe for MenuButtonWebApp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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