#[non_exhaustive]pub struct PrivacyConfig {
pub allow_user_text_in_telemetry: bool,
pub store_model_prompts: bool,
pub replay_retention_days: u32,
pub redact_attachment_filenames: bool,
}Expand description
What may leave the runtime and for how long it is kept (spec §25.5).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.allow_user_text_in_telemetry: boolWhether the user’s raw text may be attached to traces and logs.
store_model_prompts: boolWhether prompts sent to providers are stored with the replay record.
replay_retention_days: u32How long a replay record is kept.
redact_attachment_filenames: boolWhether attachment file names are redacted from telemetry.
Implementations§
Source§impl PrivacyConfig
impl PrivacyConfig
Sourcepub const fn conservative() -> Self
pub const fn conservative() -> Self
No user text in telemetry, no stored prompts, 90 days of replay, file names redacted.
Sourcepub const fn with_replay_retention_days(self, days: u32) -> Self
pub const fn with_replay_retention_days(self, days: u32) -> Self
Returns a copy with another retention window.
Trait Implementations§
Source§impl Clone for PrivacyConfig
impl Clone for PrivacyConfig
impl Copy for PrivacyConfig
Source§impl Debug for PrivacyConfig
impl Debug for PrivacyConfig
Source§impl Default for PrivacyConfig
impl Default for PrivacyConfig
Source§impl<'de> Deserialize<'de> for PrivacyConfig
impl<'de> Deserialize<'de> for PrivacyConfig
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 PrivacyConfig
Source§impl PartialEq for PrivacyConfig
impl PartialEq for PrivacyConfig
Source§impl Serialize for PrivacyConfig
impl Serialize for PrivacyConfig
impl StructuralPartialEq for PrivacyConfig
Auto Trait Implementations§
impl Freeze for PrivacyConfig
impl RefUnwindSafe for PrivacyConfig
impl Send for PrivacyConfig
impl Sync for PrivacyConfig
impl Unpin for PrivacyConfig
impl UnsafeUnpin for PrivacyConfig
impl UnwindSafe for PrivacyConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.