pub enum Redaction {
Static(Content),
Dynamic(Box<dyn Fn(Content, ContentPath<'_>) -> Content + Sync + Send>),
}
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 Freeze for Redaction
impl !RefUnwindSafe for Redaction
impl Send for Redaction
impl Sync for Redaction
impl Unpin for Redaction
impl !UnwindSafe for Redaction
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