pub struct Cache<'a> { /* private fields */ }Expand description
Cache identifier.
Implementations§
Source§impl<'a> Cache<'a>
impl<'a> Cache<'a>
pub fn builder( cacheId: CacheId<'a>, securityOrigin: impl Into<Cow<'a, str>>, storageKey: impl Into<Cow<'a, str>>, cacheName: impl Into<Cow<'a, str>>, ) -> CacheBuilder<'a>
pub fn cacheId(&self) -> &CacheId<'a>
pub fn securityOrigin(&self) -> &str
pub fn storageKey(&self) -> &str
pub fn storageBucket(&self) -> Option<&StorageBucket<'a>>
pub fn cacheName(&self) -> &str
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for Cache<'a>
impl<'de, 'a> Deserialize<'de> for Cache<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for Cache<'a>
impl<'a> RefUnwindSafe for Cache<'a>
impl<'a> Send for Cache<'a>
impl<'a> Sync for Cache<'a>
impl<'a> Unpin for Cache<'a>
impl<'a> UnsafeUnpin for Cache<'a>
impl<'a> UnwindSafe for Cache<'a>
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