pub enum Redaction {
Static(Content),
Dynamic(Box<dyn Fn(Content, ContentPath<'_>) -> Content + Sync + Send>),
}
Available on crate feature
redactions
only.Expand description
Replaces a value with another one. Represents a redaction.
Variants
Static(Content)
Static redaction with new content.
Dynamic(Box<dyn Fn(Content, ContentPath<'_>) -> Content + Sync + Send>)
Redaction with new content.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Redaction
impl Send for Redaction
impl Sync for Redaction
impl Unpin for Redaction
impl !UnwindSafe for Redaction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more