#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = StorageEstimate)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `StorageEstimate` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `StorageEstimate`*"]
pub type StorageEstimate;
#[doc = "Get the `quota` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `StorageEstimate`*"]
#[wasm_bindgen(method, getter = "quota")]
pub fn get_quota(this: &StorageEstimate) -> Option<f64>;
#[doc = "Change the `quota` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `StorageEstimate`*"]
#[wasm_bindgen(method, setter = "quota")]
pub fn set_quota(this: &StorageEstimate, val: f64);
#[doc = "Get the `usage` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `StorageEstimate`*"]
#[wasm_bindgen(method, getter = "usage")]
pub fn get_usage(this: &StorageEstimate) -> Option<f64>;
#[doc = "Change the `usage` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `StorageEstimate`*"]
#[wasm_bindgen(method, setter = "usage")]
pub fn set_usage(this: &StorageEstimate, val: f64);
}
impl StorageEstimate {
#[doc = "Construct a new `StorageEstimate`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `StorageEstimate`*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[deprecated = "Use `set_quota()` instead."]
pub fn quota(&mut self, val: f64) -> &mut Self {
self.set_quota(val);
self
}
#[deprecated = "Use `set_usage()` instead."]
pub fn usage(&mut self, val: f64) -> &mut Self {
self.set_usage(val);
self
}
}
impl Default for StorageEstimate {
fn default() -> Self {
Self::new()
}
}