pub struct StorageIdBuilder { /* private fields */ }Expand description
Builder for StorageId.
Implementations§
Source§impl StorageIdBuilder
impl StorageIdBuilder
Sourcepub fn security_origin<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn security_origin<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Security origin for the storage.
Sourcepub fn storage_key<VALUE: Into<SerializedStorageKey>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn storage_key<VALUE: Into<SerializedStorageKey>>( &mut self, value: VALUE, ) -> &mut Self
Represents a key by which DOM Storage keys its CachedStorageAreas
Sourcepub fn is_local_storage<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn is_local_storage<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Whether the storage is local storage (not session storage).
Trait Implementations§
Source§impl Clone for StorageIdBuilder
impl Clone for StorageIdBuilder
Source§fn clone(&self) -> StorageIdBuilder
fn clone(&self) -> StorageIdBuilder
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 moreAuto Trait Implementations§
impl Freeze for StorageIdBuilder
impl RefUnwindSafe for StorageIdBuilder
impl Send for StorageIdBuilder
impl Sync for StorageIdBuilder
impl Unpin for StorageIdBuilder
impl UnsafeUnpin for StorageIdBuilder
impl UnwindSafe for StorageIdBuilder
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