pub enum RedactionMode {
Hashed,
LocalReference,
Omitted,
Masked,
}Expand description
How a class of sensitive data is protected (the information boundary).
Variants§
Hashed
Replaced by an irreversible blake3 fingerprint: correlatable, not recoverable.
LocalReference
Replaced by a stable local-only reference (e.g. an env-var name or a worker id) that does not reveal the secret itself.
Omitted
Never recorded at all.
Masked
Replaced in place by the sentinel / ***, preserving structure.
Trait Implementations§
Source§impl Clone for RedactionMode
impl Clone for RedactionMode
impl Copy for RedactionMode
Source§impl Debug for RedactionMode
impl Debug for RedactionMode
Source§impl<'de> Deserialize<'de> for RedactionMode
impl<'de> Deserialize<'de> for RedactionMode
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
impl Eq for RedactionMode
Source§impl Hash for RedactionMode
impl Hash for RedactionMode
Source§impl JsonSchema for RedactionMode
impl JsonSchema for RedactionMode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for RedactionMode
impl PartialEq for RedactionMode
Source§impl Serialize for RedactionMode
impl Serialize for RedactionMode
impl StructuralPartialEq for RedactionMode
Auto Trait Implementations§
impl Freeze for RedactionMode
impl RefUnwindSafe for RedactionMode
impl Send for RedactionMode
impl Sync for RedactionMode
impl Unpin for RedactionMode
impl UnsafeUnpin for RedactionMode
impl UnwindSafe for RedactionMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.