pub struct OpenUrl {
pub url: String,
pub new_tab: bool,
}
Expand description
What URL to open, and how.
Use with crate::Context::open_url
.
Fields§
§url: String
§new_tab: bool
If true
, open the url in a new tab.
If false
open it in the same tab.
Only matters when in a web browser.
Implementations§
Trait Implementations§
impl Eq for OpenUrl
impl StructuralPartialEq for OpenUrl
Auto Trait Implementations§
impl Freeze for OpenUrl
impl RefUnwindSafe for OpenUrl
impl Send for OpenUrl
impl Sync for OpenUrl
impl Unpin for OpenUrl
impl UnwindSafe for OpenUrl
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)