pub struct PreloadEnabledStateUpdatedEventParamsBuilder { /* private fields */ }Expand description
Builder for PreloadEnabledStateUpdatedEventParams.
Implementations§
Source§impl PreloadEnabledStateUpdatedEventParamsBuilder
impl PreloadEnabledStateUpdatedEventParamsBuilder
pub fn disabled_by_preference(&mut self, value: bool) -> &mut Self
pub fn disabled_by_data_saver(&mut self, value: bool) -> &mut Self
pub fn disabled_by_battery_saver(&mut self, value: bool) -> &mut Self
pub fn disabled_by_holdback_prefetch_speculation_rules( &mut self, value: bool, ) -> &mut Self
pub fn disabled_by_holdback_prerender_speculation_rules( &mut self, value: bool, ) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<PreloadEnabledStateUpdatedEventParams, PreloadEnabledStateUpdatedEventParamsBuilderError>
pub fn build( &self, ) -> Result<PreloadEnabledStateUpdatedEventParams, PreloadEnabledStateUpdatedEventParamsBuilderError>
Builds a new PreloadEnabledStateUpdatedEventParams.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for PreloadEnabledStateUpdatedEventParamsBuilder
impl Clone for PreloadEnabledStateUpdatedEventParamsBuilder
Source§fn clone(&self) -> PreloadEnabledStateUpdatedEventParamsBuilder
fn clone(&self) -> PreloadEnabledStateUpdatedEventParamsBuilder
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 PreloadEnabledStateUpdatedEventParamsBuilder
impl RefUnwindSafe for PreloadEnabledStateUpdatedEventParamsBuilder
impl Send for PreloadEnabledStateUpdatedEventParamsBuilder
impl Sync for PreloadEnabledStateUpdatedEventParamsBuilder
impl Unpin for PreloadEnabledStateUpdatedEventParamsBuilder
impl UnsafeUnpin for PreloadEnabledStateUpdatedEventParamsBuilder
impl UnwindSafe for PreloadEnabledStateUpdatedEventParamsBuilder
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