pub struct CompoundKey {
pub primary: String,
pub secondary: Option<String>,
pub namespace: Option<String>,
}
Expand description
Compound cache key for complex scenarios
Fields§
§primary: String
Primary key component
secondary: Option<String>
Secondary key component
namespace: Option<String>
Namespace for the key
Trait Implementations§
Source§impl CacheKey for CompoundKey
impl CacheKey for CompoundKey
Source§impl Clone for CompoundKey
impl Clone for CompoundKey
Source§fn clone(&self) -> CompoundKey
fn clone(&self) -> CompoundKey
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 CompoundKey
impl RefUnwindSafe for CompoundKey
impl Send for CompoundKey
impl Sync for CompoundKey
impl Unpin for CompoundKey
impl UnwindSafe for CompoundKey
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