pub struct FieldSecurity {
pub classification: PIIClassification,
pub opaque: bool,
pub immutable: bool,
pub audited: bool,
pub redact_in_logs: bool,
pub env_source: Option<String>,
}Expand description
Field security modifiers.
Controls how agents and systems can interact with sensitive fields.
Fields§
§classification: PIIClassificationSensitivity classification
opaque: boolAgent can pass but not read content
immutable: boolCannot be modified after creation
audited: boolAll access is logged
redact_in_logs: boolRedact in logs and error messages
env_source: Option<String>Source from environment variable
Implementations§
Source§impl FieldSecurity
impl FieldSecurity
Sourcepub fn with_opaque(self) -> Self
pub fn with_opaque(self) -> Self
Mark as opaque (agent can pass but not read).
Sourcepub fn with_immutable(self) -> Self
pub fn with_immutable(self) -> Self
Mark as immutable.
Sourcepub fn with_audited(self) -> Self
pub fn with_audited(self) -> Self
Mark as audited.
Trait Implementations§
Source§impl Clone for FieldSecurity
impl Clone for FieldSecurity
Source§fn clone(&self) -> FieldSecurity
fn clone(&self) -> FieldSecurity
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 FieldSecurity
impl Debug for FieldSecurity
Source§impl Default for FieldSecurity
impl Default for FieldSecurity
Source§impl<'de> Deserialize<'de> for FieldSecurity
impl<'de> Deserialize<'de> for FieldSecurity
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 FieldSecurity
impl PartialEq for FieldSecurity
Source§impl Serialize for FieldSecurity
impl Serialize for FieldSecurity
impl StructuralPartialEq for FieldSecurity
Auto Trait Implementations§
impl Freeze for FieldSecurity
impl RefUnwindSafe for FieldSecurity
impl Send for FieldSecurity
impl Sync for FieldSecurity
impl Unpin for FieldSecurity
impl UnwindSafe for FieldSecurity
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