#[non_exhaustive]pub enum HarmCategory {
Show 13 variants
Unspecified,
Harassment,
HateSpeech,
SexuallyExplicit,
DangerousContent,
CivicIntegrity,
Derogatory,
Toxicity,
Violence,
Sexual,
Medical,
Dangerous,
Jailbreak,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unspecified
Harassment
HateSpeech
SexuallyExplicit
DangerousContent
CivicIntegrity
Derogatory
Toxicity
Violence
Sexual
Medical
Dangerous
Jailbreak
Trait Implementations§
Source§impl Clone for HarmCategory
impl Clone for HarmCategory
Source§impl Debug for HarmCategory
impl Debug for HarmCategory
Source§impl DeclaredFields for HarmCategory
impl DeclaredFields for HarmCategory
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for HarmCategory
impl<'de> Deserialize<'de> for HarmCategory
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HarmCategory
Source§impl PartialEq for HarmCategory
impl PartialEq for HarmCategory
Source§impl Serialize for HarmCategory
impl Serialize for HarmCategory
impl StructuralPartialEq for HarmCategory
Auto Trait Implementations§
impl Freeze for HarmCategory
impl RefUnwindSafe for HarmCategory
impl Send for HarmCategory
impl Sync for HarmCategory
impl Unpin for HarmCategory
impl UnsafeUnpin for HarmCategory
impl UnwindSafe for HarmCategory
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