pub enum HarmBlockThreshold {
HarmBlockThresholdUnspecified,
BlockLowAndAbove,
BlockMedAndAbove,
BlockOnlyHigh,
BlockNone,
OFF,
}
Expand description
Block at and beyond a specified harm probability
Variants§
HarmBlockThresholdUnspecified
Threshold is unspecified
BlockLowAndAbove
Content with HarmProbability::Negligible will be allowed
BlockMedAndAbove
Content with HarmProbability::Negligible and HarmProbability::Low will be allowed
BlockOnlyHigh
Content with HarmProbability::Negligible, HarmProbability::Low, and HarmProbability::Medium will be allowed
BlockNone
All content will be allowed
OFF
Turn off the safety filter
Trait Implementations§
Source§impl Clone for HarmBlockThreshold
impl Clone for HarmBlockThreshold
Source§fn clone(&self) -> HarmBlockThreshold
fn clone(&self) -> HarmBlockThreshold
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 moreSource§impl Debug for HarmBlockThreshold
impl Debug for HarmBlockThreshold
Source§impl<'de> Deserialize<'de> for HarmBlockThreshold
impl<'de> Deserialize<'de> for HarmBlockThreshold
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
Auto Trait Implementations§
impl Freeze for HarmBlockThreshold
impl RefUnwindSafe for HarmBlockThreshold
impl Send for HarmBlockThreshold
impl Sync for HarmBlockThreshold
impl Unpin for HarmBlockThreshold
impl UnwindSafe for HarmBlockThreshold
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