pub enum SafetySettingCategory {
HarmCategorySexuallyExplicit,
HarmCategoryHateSpeech,
HarmCategoryHarassment,
HarmCategoryDangerousContent,
}Expand description
The safety category to configure a threshold for. Acceptable values include the following:
Variants§
HarmCategorySexuallyExplicit
HarmCategoryHateSpeech
HarmCategoryHarassment
HarmCategoryDangerousContent
Trait Implementations§
source§impl Clone for SafetySettingCategory
impl Clone for SafetySettingCategory
source§fn clone(&self) -> SafetySettingCategory
fn clone(&self) -> SafetySettingCategory
Returns a copy 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 SafetySettingCategory
impl Debug for SafetySettingCategory
source§impl<'de> Deserialize<'de> for SafetySettingCategory
impl<'de> Deserialize<'de> for SafetySettingCategory
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
source§impl PartialEq for SafetySettingCategory
impl PartialEq for SafetySettingCategory
source§fn eq(&self, other: &SafetySettingCategory) -> bool
fn eq(&self, other: &SafetySettingCategory) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for SafetySettingCategory
impl Serialize for SafetySettingCategory
impl StructuralPartialEq for SafetySettingCategory
Auto Trait Implementations§
impl RefUnwindSafe for SafetySettingCategory
impl Send for SafetySettingCategory
impl Sync for SafetySettingCategory
impl Unpin for SafetySettingCategory
impl UnwindSafe for SafetySettingCategory
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