pub struct OverrideQuotaForOriginBuilder { /* private fields */ }Expand description
Builder for OverrideQuotaForOrigin.
Implementations§
Source§impl OverrideQuotaForOriginBuilder
impl OverrideQuotaForOriginBuilder
Sourcepub fn quota_size<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn quota_size<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
The quota size (in bytes) to override the original quota with. If this is called multiple times, the overridden quota will be equal to the quotaSize provided in the final call. If this is called without specifying a quotaSize, the quota will be reset to the default value for the specified origin. If this is called multiple times with different origins, the override will be maintained for each origin until it is disabled (called without a quotaSize).
Sourcepub fn build(
&self,
) -> Result<OverrideQuotaForOrigin, OverrideQuotaForOriginBuilderError>
pub fn build( &self, ) -> Result<OverrideQuotaForOrigin, OverrideQuotaForOriginBuilderError>
Trait Implementations§
Source§impl Clone for OverrideQuotaForOriginBuilder
impl Clone for OverrideQuotaForOriginBuilder
Source§fn clone(&self) -> OverrideQuotaForOriginBuilder
fn clone(&self) -> OverrideQuotaForOriginBuilder
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 OverrideQuotaForOriginBuilder
impl RefUnwindSafe for OverrideQuotaForOriginBuilder
impl Send for OverrideQuotaForOriginBuilder
impl Sync for OverrideQuotaForOriginBuilder
impl Unpin for OverrideQuotaForOriginBuilder
impl UnsafeUnpin for OverrideQuotaForOriginBuilder
impl UnwindSafe for OverrideQuotaForOriginBuilder
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