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