pub enum GuardrailAction {
Allow,
Block,
Redact,
Transform,
Warn,
Escalate,
RequireReview,
Refuse,
Unknown,
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for GuardrailAction
impl Clone for GuardrailAction
Source§fn clone(&self) -> GuardrailAction
fn clone(&self) -> GuardrailAction
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 GuardrailAction
impl Debug for GuardrailAction
Source§impl Display for GuardrailAction
impl Display for GuardrailAction
Source§impl FromStr for GuardrailAction
impl FromStr for GuardrailAction
Source§impl Hash for GuardrailAction
impl Hash for GuardrailAction
Source§impl Ord for GuardrailAction
impl Ord for GuardrailAction
Source§fn cmp(&self, other: &GuardrailAction) -> Ordering
fn cmp(&self, other: &GuardrailAction) -> 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 GuardrailAction
impl PartialEq for GuardrailAction
Source§fn eq(&self, other: &GuardrailAction) -> bool
fn eq(&self, other: &GuardrailAction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GuardrailAction
impl PartialOrd for GuardrailAction
impl Copy for GuardrailAction
impl Eq for GuardrailAction
impl StructuralPartialEq for GuardrailAction
Auto Trait Implementations§
impl Freeze for GuardrailAction
impl RefUnwindSafe for GuardrailAction
impl Send for GuardrailAction
impl Sync for GuardrailAction
impl Unpin for GuardrailAction
impl UnsafeUnpin for GuardrailAction
impl UnwindSafe for GuardrailAction
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