pub struct OverrideQuotaForOriginParams {
pub origin: String,
pub quota_size: Option<f64>,
}Expand description
Override quota for the specified origin
Experimental: may change without notice.
Parameters of Storage.overrideQuotaForOrigin.
Fields§
§origin: StringSecurity origin.
quota_size: Option<f64>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).
Trait Implementations§
Source§impl Clone for OverrideQuotaForOriginParams
impl Clone for OverrideQuotaForOriginParams
Source§impl Debug for OverrideQuotaForOriginParams
impl Debug for OverrideQuotaForOriginParams
Source§impl<'de> Deserialize<'de> for OverrideQuotaForOriginParams
impl<'de> Deserialize<'de> for OverrideQuotaForOriginParams
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
impl StructuralPartialEq for OverrideQuotaForOriginParams
Auto Trait Implementations§
impl Forget for OverrideQuotaForOriginParams
impl Freeze for OverrideQuotaForOriginParams
impl RefUnwindSafe for OverrideQuotaForOriginParams
impl Send for OverrideQuotaForOriginParams
impl Sync for OverrideQuotaForOriginParams
impl Unpin for OverrideQuotaForOriginParams
impl UnsafeUnpin for OverrideQuotaForOriginParams
impl UnwindSafe for OverrideQuotaForOriginParams
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