pub enum OutputGuardrailMode {
Off,
Redact,
Block,
}Expand description
Output guardrail policy for outbound bot messages.
Variants§
Off
No scanning — historical behavior (default).
Redact
Replace detected credentials with placeholders; still deliver.
Block
Withhold the whole message when a credential is detected.
Trait Implementations§
Source§impl Clone for OutputGuardrailMode
impl Clone for OutputGuardrailMode
Source§fn clone(&self) -> OutputGuardrailMode
fn clone(&self) -> OutputGuardrailMode
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 moreimpl Copy for OutputGuardrailMode
Source§impl Debug for OutputGuardrailMode
impl Debug for OutputGuardrailMode
Source§impl Default for OutputGuardrailMode
impl Default for OutputGuardrailMode
Source§fn default() -> OutputGuardrailMode
fn default() -> OutputGuardrailMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OutputGuardrailMode
impl<'de> Deserialize<'de> for OutputGuardrailMode
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 OutputGuardrailMode
Source§impl PartialEq for OutputGuardrailMode
impl PartialEq for OutputGuardrailMode
Source§impl Serialize for OutputGuardrailMode
impl Serialize for OutputGuardrailMode
impl StructuralPartialEq for OutputGuardrailMode
Auto Trait Implementations§
impl Freeze for OutputGuardrailMode
impl RefUnwindSafe for OutputGuardrailMode
impl Send for OutputGuardrailMode
impl Sync for OutputGuardrailMode
impl Unpin for OutputGuardrailMode
impl UnsafeUnpin for OutputGuardrailMode
impl UnwindSafe for OutputGuardrailMode
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