pub enum Transforms {
None,
FullBody(Vec<Transform>),
PerKey(HashMap<String, Vec<Transform>>),
}Expand description
Transformations to apply to extracted values.
Apply hash, lowercase, or other transforms to captured values before using them in cache keys.
Variants§
None
No transformations applied.
FullBody(Vec<Transform>)
Apply transforms to all captured values.
PerKey(HashMap<String, Vec<Transform>>)
Apply different transforms per capture group name.
Trait Implementations§
Source§impl Clone for Transforms
impl Clone for Transforms
Source§fn clone(&self) -> Transforms
fn clone(&self) -> Transforms
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 Transforms
impl Debug for Transforms
Source§impl Default for Transforms
impl Default for Transforms
Source§fn default() -> Transforms
fn default() -> Transforms
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Transforms
impl RefUnwindSafe for Transforms
impl Send for Transforms
impl Sync for Transforms
impl Unpin for Transforms
impl UnwindSafe for Transforms
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