pub struct OverrideQuotaForOrigin {
pub origin: String,
pub quota_size: Option<JsFloat>,
}Expand description
Override quota for the specified origin
Fields§
§origin: StringSecurity origin.
quota_size: Option<JsFloat>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 OverrideQuotaForOrigin
impl Clone for OverrideQuotaForOrigin
Source§fn clone(&self) -> OverrideQuotaForOrigin
fn clone(&self) -> OverrideQuotaForOrigin
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 Debug for OverrideQuotaForOrigin
impl Debug for OverrideQuotaForOrigin
Source§impl<'de> Deserialize<'de> for OverrideQuotaForOrigin
impl<'de> Deserialize<'de> for OverrideQuotaForOrigin
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
Source§impl Method for OverrideQuotaForOrigin
impl Method for OverrideQuotaForOrigin
const NAME: &'static str = "Storage.overrideQuotaForOrigin"
type ReturnObject = OverrideQuotaForOriginReturnObject
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>where
Self: Sized,
Source§impl PartialEq for OverrideQuotaForOrigin
impl PartialEq for OverrideQuotaForOrigin
Source§impl Serialize for OverrideQuotaForOrigin
impl Serialize for OverrideQuotaForOrigin
impl StructuralPartialEq for OverrideQuotaForOrigin
Auto Trait Implementations§
impl Freeze for OverrideQuotaForOrigin
impl RefUnwindSafe for OverrideQuotaForOrigin
impl Send for OverrideQuotaForOrigin
impl Sync for OverrideQuotaForOrigin
impl Unpin for OverrideQuotaForOrigin
impl UnsafeUnpin for OverrideQuotaForOrigin
impl UnwindSafe for OverrideQuotaForOrigin
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