Struct botapi::gen_types::WebAppInfo
source · pub struct WebAppInfo { /* private fields */ }Expand description
Describes a Web App.
Implementations§
source§impl WebAppInfo
impl WebAppInfo
pub fn noskip(self) -> NoSkipWebAppInfo
source§impl WebAppInfo
impl WebAppInfo
pub fn new(url: String) -> Self
sourcepub fn into_tuple(self) -> String
pub fn into_tuple(self) -> String
Consumes and deconstructs this type into a tuple with one element per field. Tuple type returned is: (url)
sourcepub fn get_url<'a>(&'a self) -> Cow<'a, str>
pub fn get_url<'a>(&'a self) -> Cow<'a, str>
An HTTPS URL of a Web App to be opened with additional data as specified in Initializing Web Apps
sourcepub fn get_url_ref<'a>(&'a self) -> &'a str
pub fn get_url_ref<'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<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 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.
Auto Trait Implementations§
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