pub struct OpenLinkOptions {
pub try_instant_view: Option<bool>,
}
Expand description
Options supported by TelegramWebApp::open_link
.
§Examples
use telegram_webapp_sdk::webapp::{OpenLinkOptions, TelegramWebApp};
if let Some(app) = TelegramWebApp::instance() {
let options = OpenLinkOptions {
try_instant_view: Some(true)
};
let _ = app.open_link("https://example.com", Some(&options));
}
Fields§
§try_instant_view: Option<bool>
Trait Implementations§
Source§impl Debug for OpenLinkOptions
impl Debug for OpenLinkOptions
Source§impl Default for OpenLinkOptions
impl Default for OpenLinkOptions
Source§fn default() -> OpenLinkOptions
fn default() -> OpenLinkOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OpenLinkOptions
impl RefUnwindSafe for OpenLinkOptions
impl Send for OpenLinkOptions
impl Sync for OpenLinkOptions
impl Unpin for OpenLinkOptions
impl UnwindSafe for OpenLinkOptions
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