pub struct NavigateReturnObjectBuilder { /* private fields */ }Expand description
Builder for NavigateReturnObject.
Implementations§
Sourcepub fn frame_id(&mut self, value: FrameId) -> &mut Self
pub fn frame_id(&mut self, value: FrameId) -> &mut Self
Frame id that has navigated (or failed to navigate)
Sourcepub fn loader_id(&mut self, value: Option<LoaderId>) -> &mut Self
pub fn loader_id(&mut self, value: Option<LoaderId>) -> &mut Self
Loader identifier. This is omitted in case of same-document navigation, as the previously committed loaderId would not change.
Sourcepub fn error_text(&mut self, value: Option<String>) -> &mut Self
pub fn error_text(&mut self, value: Option<String>) -> &mut Self
User friendly error message, present if and only if navigation has failed.
Sourcepub fn is_download(&mut self, value: Option<bool>) -> &mut Self
pub fn is_download(&mut self, value: Option<bool>) -> &mut Self
Whether the navigation resulted in a download.
Sourcepub fn build(
&self,
) -> Result<NavigateReturnObject, NavigateReturnObjectBuilderError>
pub fn build( &self, ) -> Result<NavigateReturnObject, NavigateReturnObjectBuilderError>
Trait Implementations§
Source§fn clone(&self) -> NavigateReturnObjectBuilder
fn clone(&self) -> NavigateReturnObjectBuilder
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