pub struct FrameRequestedNavigationEventParamsBuilder { /* private fields */ }Expand description
Builder for FrameRequestedNavigationEventParams.
Implementations§
Sourcepub fn frame_id(&mut self, value: FrameId) -> &mut Self
pub fn frame_id(&mut self, value: FrameId) -> &mut Self
Id of the frame that is being navigated.
Sourcepub fn reason(&mut self, value: ClientNavigationReason) -> &mut Self
pub fn reason(&mut self, value: ClientNavigationReason) -> &mut Self
The reason for the navigation.
Sourcepub fn url(&mut self, value: String) -> &mut Self
pub fn url(&mut self, value: String) -> &mut Self
The destination URL for the requested navigation.
Sourcepub fn disposition(&mut self, value: ClientNavigationDisposition) -> &mut Self
pub fn disposition(&mut self, value: ClientNavigationDisposition) -> &mut Self
The disposition for the navigation.
Sourcepub fn build(
&self,
) -> Result<FrameRequestedNavigationEventParams, FrameRequestedNavigationEventParamsBuilderError>
pub fn build( &self, ) -> Result<FrameRequestedNavigationEventParams, FrameRequestedNavigationEventParamsBuilderError>
Builds a new FrameRequestedNavigationEventParams.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§fn clone(&self) -> FrameRequestedNavigationEventParamsBuilder
fn clone(&self) -> FrameRequestedNavigationEventParamsBuilder
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