pub struct NavigationEntryBuilder { /* private fields */ }Expand description
Builder for NavigationEntry.
Implementations§
Sourcepub fn id<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn id<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Unique id of the navigation history entry.
Sourcepub fn url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
URL of the navigation history entry.
Sourcepub fn user_typed_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn user_typed_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
URL that the user typed in the url bar.
Sourcepub fn title<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn title<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Title of the navigation history entry.
Sourcepub fn transition_type<VALUE: Into<TransitionType>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn transition_type<VALUE: Into<TransitionType>>( &mut self, value: VALUE, ) -> &mut Self
Transition type.
Sourcepub fn build(&self) -> Result<NavigationEntry, NavigationEntryBuilderError>
pub fn build(&self) -> Result<NavigationEntry, NavigationEntryBuilderError>
Trait Implementations§
Source§fn clone(&self) -> NavigationEntryBuilder
fn clone(&self) -> NavigationEntryBuilder
Returns a duplicate 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 moreAuto 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