pub enum GuardrailKind {
Input,
Output,
ToolUse,
Retrieval,
Memory,
Policy,
Format,
RateLimit,
CostLimit,
HumanReview,
Custom,
}Variants§
Implementations§
Source§impl GuardrailKind
impl GuardrailKind
Trait Implementations§
Source§impl Clone for GuardrailKind
impl Clone for GuardrailKind
Source§fn clone(&self) -> GuardrailKind
fn clone(&self) -> GuardrailKind
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 GuardrailKind
impl Debug for GuardrailKind
Source§impl Display for GuardrailKind
impl Display for GuardrailKind
Source§impl FromStr for GuardrailKind
impl FromStr for GuardrailKind
Source§type Err = GuardrailError
type Err = GuardrailError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<GuardrailKind, <GuardrailKind as FromStr>::Err>
fn from_str( value: &str, ) -> Result<GuardrailKind, <GuardrailKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for GuardrailKind
impl Hash for GuardrailKind
Source§impl Ord for GuardrailKind
impl Ord for GuardrailKind
Source§fn cmp(&self, other: &GuardrailKind) -> Ordering
fn cmp(&self, other: &GuardrailKind) -> 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 GuardrailKind
impl PartialEq for GuardrailKind
Source§fn eq(&self, other: &GuardrailKind) -> bool
fn eq(&self, other: &GuardrailKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GuardrailKind
impl PartialOrd for GuardrailKind
impl Copy for GuardrailKind
impl Eq for GuardrailKind
impl StructuralPartialEq for GuardrailKind
Auto Trait Implementations§
impl Freeze for GuardrailKind
impl RefUnwindSafe for GuardrailKind
impl Send for GuardrailKind
impl Sync for GuardrailKind
impl Unpin for GuardrailKind
impl UnsafeUnpin for GuardrailKind
impl UnwindSafe for GuardrailKind
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