Struct CacheKeyBuilder
pub struct CacheKeyBuilder { /* private fields */ }Expand description
Builder for composed cache keys.
Implementations§
§impl CacheKeyBuilder
impl CacheKeyBuilder
pub const fn new() -> CacheKeyBuilder
pub const fn new() -> CacheKeyBuilder
Creates an empty cache key builder.
pub fn namespace(self, namespace: CacheNamespace) -> CacheKeyBuilder
pub fn namespace(self, namespace: CacheNamespace) -> CacheKeyBuilder
Sets the namespace prefix.
pub fn segment(self, segment: impl AsRef<str>) -> CacheKeyBuilder
pub fn segment(self, segment: impl AsRef<str>) -> CacheKeyBuilder
Adds a non-empty segment.
Trait Implementations§
§impl Clone for CacheKeyBuilder
impl Clone for CacheKeyBuilder
§fn clone(&self) -> CacheKeyBuilder
fn clone(&self) -> CacheKeyBuilder
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 more§impl Debug for CacheKeyBuilder
impl Debug for CacheKeyBuilder
§impl Default for CacheKeyBuilder
impl Default for CacheKeyBuilder
§fn default() -> CacheKeyBuilder
fn default() -> CacheKeyBuilder
Returns the “default value” for a type. Read more
§impl PartialEq for CacheKeyBuilder
impl PartialEq for CacheKeyBuilder
impl Eq for CacheKeyBuilder
impl StructuralPartialEq for CacheKeyBuilder
Auto Trait Implementations§
impl Freeze for CacheKeyBuilder
impl RefUnwindSafe for CacheKeyBuilder
impl Send for CacheKeyBuilder
impl Sync for CacheKeyBuilder
impl Unpin for CacheKeyBuilder
impl UnsafeUnpin for CacheKeyBuilder
impl UnwindSafe for CacheKeyBuilder
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