pub struct ClearStorageDataOptions { /* private fields */ }
Implementations§
Source§impl ClearStorageDataOptions
impl ClearStorageDataOptions
pub fn new( origin: Option<JsString>, quotas: Option<Box<[JsValue]>>, storages: Option<Box<[JsValue]>>, ) -> ClearStorageDataOptions
pub fn origin(&self) -> Option<JsString>
pub fn set_origin(&mut self, value: Option<JsString>)
pub fn quotas(&self) -> Option<Box<[JsValue]>>
pub fn set_quotas(&mut self, value: Option<Box<[JsValue]>>)
pub fn storages(&self) -> Option<Box<[JsValue]>>
pub fn set_storages(&mut self, value: Option<Box<[JsValue]>>)
Trait Implementations§
Source§impl Clone for ClearStorageDataOptions
impl Clone for ClearStorageDataOptions
Source§fn clone(&self) -> ClearStorageDataOptions
fn clone(&self) -> ClearStorageDataOptions
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 ClearStorageDataOptions
impl Debug for ClearStorageDataOptions
Source§impl Default for ClearStorageDataOptions
impl Default for ClearStorageDataOptions
Source§fn default() -> ClearStorageDataOptions
fn default() -> ClearStorageDataOptions
Returns the “default value” for a type. Read more
Source§impl From<ClearStorageDataOptions> for JsValue
impl From<ClearStorageDataOptions> for JsValue
Source§fn from(value: ClearStorageDataOptions) -> Self
fn from(value: ClearStorageDataOptions) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ClearStorageDataOptions
impl PartialEq for ClearStorageDataOptions
Source§impl RefFromWasmAbi for ClearStorageDataOptions
impl RefFromWasmAbi for ClearStorageDataOptions
Source§type Anchor = RcRef<ClearStorageDataOptions>
type Anchor = RcRef<ClearStorageDataOptions>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl VectorFromWasmAbi for ClearStorageDataOptions
impl VectorFromWasmAbi for ClearStorageDataOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ClearStorageDataOptions]>
Source§impl VectorIntoJsValue for ClearStorageDataOptions
impl VectorIntoJsValue for ClearStorageDataOptions
fn vector_into_jsvalue(vector: Box<[ClearStorageDataOptions]>) -> JsValue
Source§impl VectorIntoWasmAbi for ClearStorageDataOptions
impl VectorIntoWasmAbi for ClearStorageDataOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ClearStorageDataOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for ClearStorageDataOptions
impl WasmDescribeVector for ClearStorageDataOptions
impl StructuralPartialEq for ClearStorageDataOptions
impl SupportsConstructor for ClearStorageDataOptions
impl SupportsInstanceProperty for ClearStorageDataOptions
impl SupportsStaticProperty for ClearStorageDataOptions
Auto Trait Implementations§
impl Freeze for ClearStorageDataOptions
impl RefUnwindSafe for ClearStorageDataOptions
impl !Send for ClearStorageDataOptions
impl !Sync for ClearStorageDataOptions
impl Unpin for ClearStorageDataOptions
impl UnwindSafe for ClearStorageDataOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.