pub struct OverrideQuotaForOriginCommand { /* private fields */ }Available on crate features
experimental and Storage and Browser and Network only.Expand description
Override quota for the specified origin
Implementations§
Source§impl OverrideQuotaForOriginCommand
impl OverrideQuotaForOriginCommand
pub fn new(origin: String, quota_size: Option<f64>) -> Self
Sourcepub fn quota_size(&self) -> Option<&f64>
pub fn quota_size(&self) -> Option<&f64>
The quota size (in bytes) to override the original quota with. If this is called multiple times, the overriden 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).
Trait Implementations§
Source§impl Clone for OverrideQuotaForOriginCommand
impl Clone for OverrideQuotaForOriginCommand
Source§fn clone(&self) -> OverrideQuotaForOriginCommand
fn clone(&self) -> OverrideQuotaForOriginCommand
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 moreSource§impl<'de> Deserialize<'de> for OverrideQuotaForOriginCommand
impl<'de> Deserialize<'de> for OverrideQuotaForOriginCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OverrideQuotaForOriginCommand
impl RefUnwindSafe for OverrideQuotaForOriginCommand
impl Send for OverrideQuotaForOriginCommand
impl Sync for OverrideQuotaForOriginCommand
impl Unpin for OverrideQuotaForOriginCommand
impl UnwindSafe for OverrideQuotaForOriginCommand
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