Struct botapi::gen_types::WebAppInfo
source · pub struct WebAppInfo {
pub url: String,
}
Expand description
Describes a Web App.
Fields§
§url: String
An HTTPS URL of a Web App to be opened with additional data as specified in Initializing Web Apps
Implementations§
source§impl WebAppInfo
impl WebAppInfo
pub fn noskip(self) -> NoSkipWebAppInfo
source§impl WebAppInfo
impl WebAppInfo
pub fn new(url: String) -> Self
sourcepub fn get_url<'a>(&'a self) -> &'a str
pub fn get_url<'a>(&'a self) -> &'a str
An HTTPS URL of a Web App to be opened with additional data as specified in Initializing Web Apps
sourcepub fn set_url<'a>(&'a mut self, url: String) -> &'a mut Self
pub fn set_url<'a>(&'a mut self, url: String) -> &'a mut Self
An HTTPS URL of a Web App to be opened with additional data as specified in Initializing Web Apps
Trait Implementations§
source§impl Clone for WebAppInfo
impl Clone for WebAppInfo
source§fn clone(&self) -> WebAppInfo
fn clone(&self) -> WebAppInfo
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 WebAppInfo
impl Debug for WebAppInfo
source§impl Default for WebAppInfo
impl Default for WebAppInfo
source§fn default() -> WebAppInfo
fn default() -> WebAppInfo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for WebAppInfo
impl<'de> Deserialize<'de> for WebAppInfo
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<BoxWrapper<Box<WebAppInfo>>> for WebAppInfo
impl From<BoxWrapper<Box<WebAppInfo>>> for WebAppInfo
source§fn from(t: BoxWrapper<Box<WebAppInfo>>) -> Self
fn from(t: BoxWrapper<Box<WebAppInfo>>) -> Self
Converts to this type from the input type.
source§impl From<BoxWrapper<Unbox<WebAppInfo>>> for WebAppInfo
impl From<BoxWrapper<Unbox<WebAppInfo>>> for WebAppInfo
source§fn from(t: BoxWrapper<Unbox<WebAppInfo>>) -> Self
fn from(t: BoxWrapper<Unbox<WebAppInfo>>) -> Self
Converts to this type from the input type.
source§impl From<NoSkipWebAppInfo> for WebAppInfo
impl From<NoSkipWebAppInfo> for WebAppInfo
source§fn from(t: NoSkipWebAppInfo) -> Self
fn from(t: NoSkipWebAppInfo) -> Self
Converts to this type from the input type.
source§impl Hash for WebAppInfo
impl Hash for WebAppInfo
source§impl Into<NoSkipWebAppInfo> for WebAppInfo
impl Into<NoSkipWebAppInfo> for WebAppInfo
source§fn into(self) -> NoSkipWebAppInfo
fn into(self) -> NoSkipWebAppInfo
Converts this type into the (usually inferred) input type.
source§impl Ord for WebAppInfo
impl Ord for WebAppInfo
source§fn cmp(&self, other: &WebAppInfo) -> Ordering
fn cmp(&self, other: &WebAppInfo) -> 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 WebAppInfo
impl PartialEq for WebAppInfo
source§fn eq(&self, other: &WebAppInfo) -> bool
fn eq(&self, other: &WebAppInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for WebAppInfo
impl PartialOrd for WebAppInfo
source§fn partial_cmp(&self, other: &WebAppInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &WebAppInfo) -> 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 WebAppInfo
impl Serialize for WebAppInfo
impl Eq for WebAppInfo
impl StructuralPartialEq for WebAppInfo
Auto Trait Implementations§
impl Freeze for WebAppInfo
impl RefUnwindSafe for WebAppInfo
impl Send for WebAppInfo
impl Sync for WebAppInfo
impl Unpin for WebAppInfo
impl UnwindSafe for WebAppInfo
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.