Struct botapi::gen_types::NoSkipWebAppData
source · pub struct NoSkipWebAppData {
pub data: String,
pub button_text: String,
}
Expand description
Companion type to WebAppData that doesn’t skip fields when serializing. Used for certain deserializers that use arrays to represent struct members
Fields§
§data: String
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.
Implementations§
source§impl NoSkipWebAppData
impl NoSkipWebAppData
pub fn skip(self) -> WebAppData
Trait Implementations§
source§impl Clone for NoSkipWebAppData
impl Clone for NoSkipWebAppData
source§fn clone(&self) -> NoSkipWebAppData
fn clone(&self) -> NoSkipWebAppData
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 NoSkipWebAppData
impl Debug for NoSkipWebAppData
source§impl Default for NoSkipWebAppData
impl Default for NoSkipWebAppData
source§fn default() -> NoSkipWebAppData
fn default() -> NoSkipWebAppData
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NoSkipWebAppData
impl<'de> Deserialize<'de> for NoSkipWebAppData
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 From<NoSkipWebAppData> for WebAppData
impl From<NoSkipWebAppData> for WebAppData
source§fn from(t: NoSkipWebAppData) -> Self
fn from(t: NoSkipWebAppData) -> Self
Converts to this type from the input type.
source§impl Hash for NoSkipWebAppData
impl Hash for NoSkipWebAppData
source§impl Into<NoSkipWebAppData> for WebAppData
impl Into<NoSkipWebAppData> for WebAppData
source§fn into(self) -> NoSkipWebAppData
fn into(self) -> NoSkipWebAppData
Converts this type into the (usually inferred) input type.
source§impl Ord for NoSkipWebAppData
impl Ord for NoSkipWebAppData
source§fn cmp(&self, other: &NoSkipWebAppData) -> Ordering
fn cmp(&self, other: &NoSkipWebAppData) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for NoSkipWebAppData
impl PartialEq for NoSkipWebAppData
source§fn eq(&self, other: &NoSkipWebAppData) -> bool
fn eq(&self, other: &NoSkipWebAppData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NoSkipWebAppData
impl PartialOrd for NoSkipWebAppData
source§fn partial_cmp(&self, other: &NoSkipWebAppData) -> Option<Ordering>
fn partial_cmp(&self, other: &NoSkipWebAppData) -> 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 NoSkipWebAppData
impl Serialize for NoSkipWebAppData
impl Eq for NoSkipWebAppData
impl StructuralPartialEq for NoSkipWebAppData
Auto Trait Implementations§
impl Freeze for NoSkipWebAppData
impl RefUnwindSafe for NoSkipWebAppData
impl Send for NoSkipWebAppData
impl Sync for NoSkipWebAppData
impl Unpin for NoSkipWebAppData
impl UnwindSafe for NoSkipWebAppData
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.