Struct botapi::gen_types::WebAppDataBuilder
source · pub struct WebAppDataBuilder { /* private fields */ }Expand description
Describes data sent from a Web App to the bot.
Implementations§
source§impl WebAppDataBuilder
impl WebAppDataBuilder
pub fn new(data: String, button_text: String) -> Self
sourcepub fn set_data(self, data: String) -> Self
pub fn set_data(self, data: String) -> Self
The data. Be aware that a bad client can send arbitrary data in this field.
Text of the web_app keyboard button from which the Web App was opened. Be aware that a bad client can send arbitrary data in this field.
pub fn build(self) -> WebAppData
Trait Implementations§
source§impl Clone for WebAppDataBuilder
impl Clone for WebAppDataBuilder
source§fn clone(&self) -> WebAppDataBuilder
fn clone(&self) -> WebAppDataBuilder
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 WebAppDataBuilder
impl Debug for WebAppDataBuilder
source§impl Default for WebAppDataBuilder
impl Default for WebAppDataBuilder
source§fn default() -> WebAppDataBuilder
fn default() -> WebAppDataBuilder
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for WebAppDataBuilder
impl<'de> Deserialize<'de> for WebAppDataBuilder
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
Auto Trait Implementations§
impl RefUnwindSafe for WebAppDataBuilder
impl Send for WebAppDataBuilder
impl Sync for WebAppDataBuilder
impl Unpin for WebAppDataBuilder
impl UnwindSafe for WebAppDataBuilder
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