pub struct CompositeKey { /* private fields */ }Expand description
Composite key builder for complex keys
Implementations§
Source§impl CompositeKey
impl CompositeKey
Sourcepub fn with_namespace(self, ns: impl Into<String>) -> Self
pub fn with_namespace(self, ns: impl Into<String>) -> Self
Set the namespace
Sourcepub fn parts<I, S>(self, parts: I) -> Selfwhere
I: IntoIterator<Item = S>,
S: Display,
pub fn parts<I, S>(self, parts: I) -> Selfwhere
I: IntoIterator<Item = S>,
S: Display,
Add multiple parts
Sourcepub fn get_namespace(&self) -> Option<&str>
pub fn get_namespace(&self) -> Option<&str>
Get the namespace
Trait Implementations§
Source§impl CacheKey for CompositeKey
impl CacheKey for CompositeKey
Source§impl Clone for CompositeKey
impl Clone for CompositeKey
Source§fn clone(&self) -> CompositeKey
fn clone(&self) -> CompositeKey
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 CompositeKey
impl Debug for CompositeKey
Auto Trait Implementations§
impl Freeze for CompositeKey
impl RefUnwindSafe for CompositeKey
impl Send for CompositeKey
impl Sync for CompositeKey
impl Unpin for CompositeKey
impl UnwindSafe for CompositeKey
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