pub struct DataPolicyIr {
pub pii_fields: Vec<String>,
pub pii_detectors: Vec<String>,
pub redaction_mode: String,
pub retain_prompts: bool,
pub retain_outputs: bool,
pub retention_days: Option<u32>,
}Expand description
Data handling policy — controls PII redaction and prompt/output retention.
Applied at workflow level and overridable per-node (same layering as PolicySetIr).
Fields§
§pii_fields: Vec<String>JSON path patterns that contain PII and must be redacted.
Examples: "$.patient.ssn", "$.user.email"
pii_detectors: Vec<String>Built-in PII pattern detectors to enable.
Values: "email", "ssn", "credit_card", "phone", "ip_address"
redaction_mode: StringHow to redact PII values. Default: "mask".
Options: "mask" ([REDACTED]), "hash" (SHA-256), "remove" (delete key).
retain_prompts: boolWhether to store prompts in the event/audit log. Default: false.
retain_outputs: boolWhether to store model outputs/completions. Default: true.
retention_days: Option<u32>Retention duration for audit entries in days. None = indefinite.
Trait Implementations§
Source§impl Clone for DataPolicyIr
impl Clone for DataPolicyIr
Source§fn clone(&self) -> DataPolicyIr
fn clone(&self) -> DataPolicyIr
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 DataPolicyIr
impl Debug for DataPolicyIr
Source§impl Default for DataPolicyIr
impl Default for DataPolicyIr
Source§impl<'de> Deserialize<'de> for DataPolicyIr
impl<'de> Deserialize<'de> for DataPolicyIr
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
Auto Trait Implementations§
impl Freeze for DataPolicyIr
impl RefUnwindSafe for DataPolicyIr
impl Send for DataPolicyIr
impl Sync for DataPolicyIr
impl Unpin for DataPolicyIr
impl UnsafeUnpin for DataPolicyIr
impl UnwindSafe for DataPolicyIr
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