pub struct NavigateParams<'a> { /* private fields */ }Expand description
Navigates current page to the given URL.
Implementations§
Sourcepub fn builder(url: impl Into<Cow<'a, str>>) -> NavigateParamsBuilder<'a>
pub fn builder(url: impl Into<Cow<'a, str>>) -> NavigateParamsBuilder<'a>
Creates a builder for this type with the required parameters:
url: URL to navigate the page to.
Sourcepub fn transition_type(&self) -> Option<&TransitionType>
pub fn transition_type(&self) -> Option<&TransitionType>
Intended transition type.
Sourcepub fn frame_id(&self) -> Option<&FrameId<'a>>
pub fn frame_id(&self) -> Option<&FrameId<'a>>
Frame id to navigate, if not specified navigates the top frame.
Sourcepub fn referrer_policy(&self) -> Option<&ReferrerPolicy>
pub fn referrer_policy(&self) -> Option<&ReferrerPolicy>
Referrer-policy used for the navigation.
Trait Implementations§
Source§fn clone(&self) -> NavigateParams<'a>
fn clone(&self) -> NavigateParams<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§fn default() -> NavigateParams<'a>
fn default() -> NavigateParams<'a>
Returns the “default value” for a type. Read more
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
Auto Trait Implementations§
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