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 · 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§type Err = GuardrailError
type Err = GuardrailError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<GuardrailAction, <GuardrailAction as FromStr>::Err>
fn from_str( value: &str, ) -> Result<GuardrailAction, <GuardrailAction as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§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 · 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§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