pub struct PrivacyPolicy {
pub policy_ref: PolicyRef,
pub minimum_privacy: PrivacyClass,
pub retention: RetentionClass,
pub trust_required: TrustClass,
}Expand description
Defines the privacy policy SDK value. Construction records local state only; documented runtimes, executors, or ports own side effects.
Fields§
§policy_ref: PolicyRefPolicy reference that must be resolved by the host or runtime before execution.
minimum_privacy: PrivacyClassPrivacy classification for the value. Projection, telemetry, and delivery paths use it to enforce redaction and retention.
retention: RetentionClassRetention class used by hosts and sinks when storing or exporting this item.
trust_required: TrustClassWhether trust required is enabled. Policy, validation, or routing code uses this flag to choose the explicit behavior.
Implementations§
Source§impl PrivacyPolicy
impl PrivacyPolicy
Sourcepub fn safe_defaults(policy_ref: PolicyRef) -> Self
pub fn safe_defaults(policy_ref: PolicyRef) -> Self
Returns an updated value with safe defaults configured. This is data-only and does not perform I/O, call host ports, append journals, publish events, or start processes.
Trait Implementations§
Source§impl Clone for PrivacyPolicy
impl Clone for PrivacyPolicy
Source§fn clone(&self) -> PrivacyPolicy
fn clone(&self) -> PrivacyPolicy
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 PrivacyPolicy
impl Debug for PrivacyPolicy
Source§impl<'de> Deserialize<'de> for PrivacyPolicy
impl<'de> Deserialize<'de> for PrivacyPolicy
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 PrivacyPolicy
impl PartialEq for PrivacyPolicy
Source§fn eq(&self, other: &PrivacyPolicy) -> bool
fn eq(&self, other: &PrivacyPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PrivacyPolicy
impl Serialize for PrivacyPolicy
impl Eq for PrivacyPolicy
impl StructuralPartialEq for PrivacyPolicy
Auto Trait Implementations§
impl Freeze for PrivacyPolicy
impl RefUnwindSafe for PrivacyPolicy
impl Send for PrivacyPolicy
impl Sync for PrivacyPolicy
impl Unpin for PrivacyPolicy
impl UnsafeUnpin for PrivacyPolicy
impl UnwindSafe for PrivacyPolicy
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