pub struct CacheBuilder { /* private fields */ }Expand description
Builder for Cache.
Implementations§
Source§impl CacheBuilder
impl CacheBuilder
Sourcepub fn cache_id<VALUE: Into<CacheId>>(&mut self, value: VALUE) -> &mut Self
pub fn cache_id<VALUE: Into<CacheId>>(&mut self, value: VALUE) -> &mut Self
An opaque unique id of the cache.
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 of the cache.
Sourcepub fn storage_key<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn storage_key<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Storage key of the cache.
Sourcepub fn storage_bucket<VALUE: Into<StorageBucket>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn storage_bucket<VALUE: Into<StorageBucket>>( &mut self, value: VALUE, ) -> &mut Self
Storage bucket of the cache.
Sourcepub fn cache_name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn cache_name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The name of the cache.
Trait Implementations§
Source§impl Clone for CacheBuilder
impl Clone for CacheBuilder
Source§fn clone(&self) -> CacheBuilder
fn clone(&self) -> CacheBuilder
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 CacheBuilder
impl RefUnwindSafe for CacheBuilder
impl Send for CacheBuilder
impl Sync for CacheBuilder
impl Unpin for CacheBuilder
impl UnsafeUnpin for CacheBuilder
impl UnwindSafe for CacheBuilder
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