pub struct OverrideQuotaForOriginParams {
pub origin: String,
pub quota_size: Option<f64>,
}Expand description
Override quota for the specified origin 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).
Implementations§
Source§impl OverrideQuotaForOriginParams
impl OverrideQuotaForOriginParams
pub fn builder() -> OverrideQuotaForOriginParamsBuilder
Source§impl OverrideQuotaForOriginParams
impl OverrideQuotaForOriginParams
pub const IDENTIFIER: &'static str = "Storage.overrideQuotaForOrigin"
Trait Implementations§
Source§impl Clone for OverrideQuotaForOriginParams
impl Clone for OverrideQuotaForOriginParams
Source§fn clone(&self) -> OverrideQuotaForOriginParams
fn clone(&self) -> OverrideQuotaForOriginParams
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 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
Source§impl Method for OverrideQuotaForOriginParams
impl Method for OverrideQuotaForOriginParams
Source§fn identifier(&self) -> MethodId
fn identifier(&self) -> MethodId
The whole string identifier for this method like:
DOM.removeNodeSource§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
The name of the domain this method belongs to:
DOMSource§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
The standalone identifier of the method inside the domain:
removeNodeSource§impl PartialEq for OverrideQuotaForOriginParams
impl PartialEq for OverrideQuotaForOriginParams
Source§fn eq(&self, other: &OverrideQuotaForOriginParams) -> bool
fn eq(&self, other: &OverrideQuotaForOriginParams) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OverrideQuotaForOriginParams
Auto Trait Implementations§
impl Freeze for OverrideQuotaForOriginParams
impl RefUnwindSafe for OverrideQuotaForOriginParams
impl Send for OverrideQuotaForOriginParams
impl Sync for OverrideQuotaForOriginParams
impl Unpin 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