pub enum MaxSensitivity {
Low,
Medium,
High,
}Expand description
Maximum data-classification level permitted in a remote prompt.
Variants are ordered from most restrictive to least restrictive so that
PartialOrd / Ord comparisons work naturally: a memory at level "low"
is always allowed when the gate is Low, Medium, or High; a memory at
level "high" is only allowed when the gate is High.
Variants§
Low
Only low-sensitivity memories may appear in remote prompts.
Medium
Low- and medium-sensitivity memories are permitted (operator default).
High
All memories are permitted, including high-sensitivity data. This is an explicit operator opt-in and risks data exfiltration to external hosted models.
Implementations§
Trait Implementations§
Source§impl Clone for MaxSensitivity
impl Clone for MaxSensitivity
Source§fn clone(&self) -> MaxSensitivity
fn clone(&self) -> MaxSensitivity
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 MaxSensitivity
impl Debug for MaxSensitivity
Source§impl FromStr for MaxSensitivity
impl FromStr for MaxSensitivity
Source§impl Ord for MaxSensitivity
impl Ord for MaxSensitivity
Source§fn cmp(&self, other: &MaxSensitivity) -> Ordering
fn cmp(&self, other: &MaxSensitivity) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MaxSensitivity
impl PartialEq for MaxSensitivity
Source§fn eq(&self, other: &MaxSensitivity) -> bool
fn eq(&self, other: &MaxSensitivity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MaxSensitivity
impl PartialOrd for MaxSensitivity
impl Copy for MaxSensitivity
impl Eq for MaxSensitivity
impl StructuralPartialEq for MaxSensitivity
Auto Trait Implementations§
impl Freeze for MaxSensitivity
impl RefUnwindSafe for MaxSensitivity
impl Send for MaxSensitivity
impl Sync for MaxSensitivity
impl Unpin for MaxSensitivity
impl UnsafeUnpin for MaxSensitivity
impl UnwindSafe for MaxSensitivity
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.