Enum AiEvalFailureMode
pub enum AiEvalFailureMode {
Hallucination,
UngroundedAnswer,
BadCitation,
ToolError,
UnsafeOutput,
PolicyViolation,
RefusalFailure,
OverRefusal,
FormatFailure,
Unknown,
}Variants§
Hallucination
UngroundedAnswer
BadCitation
ToolError
UnsafeOutput
PolicyViolation
RefusalFailure
OverRefusal
FormatFailure
Unknown
Implementations§
§impl AiEvalFailureMode
impl AiEvalFailureMode
pub const ALL: &'static [AiEvalFailureMode]
pub const fn as_str(self) -> &'static str
Trait Implementations§
§impl Clone for AiEvalFailureMode
impl Clone for AiEvalFailureMode
§fn clone(&self) -> AiEvalFailureMode
fn clone(&self) -> AiEvalFailureMode
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 more§impl Debug for AiEvalFailureMode
impl Debug for AiEvalFailureMode
§impl Display for AiEvalFailureMode
impl Display for AiEvalFailureMode
§impl FromStr for AiEvalFailureMode
impl FromStr for AiEvalFailureMode
§type Err = AiEvalError
type Err = AiEvalError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<AiEvalFailureMode, <AiEvalFailureMode as FromStr>::Err>
fn from_str( value: &str, ) -> Result<AiEvalFailureMode, <AiEvalFailureMode as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for AiEvalFailureMode
impl Hash for AiEvalFailureMode
§impl Ord for AiEvalFailureMode
impl Ord for AiEvalFailureMode
§fn cmp(&self, other: &AiEvalFailureMode) -> Ordering
fn cmp(&self, other: &AiEvalFailureMode) -> 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
§impl PartialEq for AiEvalFailureMode
impl PartialEq for AiEvalFailureMode
§impl PartialOrd for AiEvalFailureMode
impl PartialOrd for AiEvalFailureMode
impl Copy for AiEvalFailureMode
impl Eq for AiEvalFailureMode
impl StructuralPartialEq for AiEvalFailureMode
Auto Trait Implementations§
impl Freeze for AiEvalFailureMode
impl RefUnwindSafe for AiEvalFailureMode
impl Send for AiEvalFailureMode
impl Sync for AiEvalFailureMode
impl Unpin for AiEvalFailureMode
impl UnsafeUnpin for AiEvalFailureMode
impl UnwindSafe for AiEvalFailureMode
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