pub struct PrefetchStatusUpdatedEventParamsBuilder { /* private fields */ }Expand description
Builder for PrefetchStatusUpdatedEventParams.
Implementations§
Source§impl PrefetchStatusUpdatedEventParamsBuilder
impl PrefetchStatusUpdatedEventParamsBuilder
pub fn key(&mut self, value: PreloadingAttemptKey) -> &mut Self
pub fn pipeline_id(&mut self, value: PreloadPipelineId) -> &mut Self
Sourcepub fn initiating_frame_id(&mut self, value: FrameId) -> &mut Self
pub fn initiating_frame_id(&mut self, value: FrameId) -> &mut Self
The frame id of the frame initiating prefetch.
pub fn prefetch_url(&mut self, value: String) -> &mut Self
pub fn status(&mut self, value: PreloadingStatus) -> &mut Self
pub fn prefetch_status(&mut self, value: PrefetchStatus) -> &mut Self
pub fn request_id(&mut self, value: RequestId) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<PrefetchStatusUpdatedEventParams, PrefetchStatusUpdatedEventParamsBuilderError>
pub fn build( &self, ) -> Result<PrefetchStatusUpdatedEventParams, PrefetchStatusUpdatedEventParamsBuilderError>
Builds a new PrefetchStatusUpdatedEventParams.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for PrefetchStatusUpdatedEventParamsBuilder
impl Clone for PrefetchStatusUpdatedEventParamsBuilder
Source§fn clone(&self) -> PrefetchStatusUpdatedEventParamsBuilder
fn clone(&self) -> PrefetchStatusUpdatedEventParamsBuilder
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§
impl Freeze for PrefetchStatusUpdatedEventParamsBuilder
impl RefUnwindSafe for PrefetchStatusUpdatedEventParamsBuilder
impl Send for PrefetchStatusUpdatedEventParamsBuilder
impl Sync for PrefetchStatusUpdatedEventParamsBuilder
impl Unpin for PrefetchStatusUpdatedEventParamsBuilder
impl UnsafeUnpin for PrefetchStatusUpdatedEventParamsBuilder
impl UnwindSafe for PrefetchStatusUpdatedEventParamsBuilder
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