pub enum WriteDecision {
Allow,
Redact {
reason: String,
},
}Expand description
What a MemoryWriteHook tells the provider to do with an incoming
chunk.
Variants§
Allow
Persist the chunk verbatim. The default outcome.
Redact
Drop the chunk before persistence. The provider returns success
to the caller (so write paths don’t need to special-case redaction)
but the chunk never lands in memory_chunks. The reason string
surfaces in logs and in any record_access-style audit trail.
Trait Implementations§
Source§impl Clone for WriteDecision
impl Clone for WriteDecision
Source§fn clone(&self) -> WriteDecision
fn clone(&self) -> WriteDecision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WriteDecision
impl Debug for WriteDecision
Source§impl<'de> Deserialize<'de> for WriteDecision
impl<'de> Deserialize<'de> for WriteDecision
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WriteDecision
impl PartialEq for WriteDecision
Source§fn eq(&self, other: &WriteDecision) -> bool
fn eq(&self, other: &WriteDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WriteDecision
impl Serialize for WriteDecision
impl Eq for WriteDecision
impl StructuralPartialEq for WriteDecision
Auto Trait Implementations§
impl Freeze for WriteDecision
impl RefUnwindSafe for WriteDecision
impl Send for WriteDecision
impl Sync for WriteDecision
impl Unpin for WriteDecision
impl UnsafeUnpin for WriteDecision
impl UnwindSafe for WriteDecision
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