Enum HarmBlockThreshold
pub enum HarmBlockThreshold {
BlockNone,
BlockOnlyHigh,
BlockMediumAndAbove,
BlockLowAndAbove,
}Expand description
Blocking threshold for safety settings.
Variants§
BlockNone
Do not block any content.
BlockOnlyHigh
Block only high-probability harmful content.
BlockMediumAndAbove
Block medium and above probability harmful content.
BlockLowAndAbove
Block low and above probability harmful content.
Trait Implementations§
§impl Clone for HarmBlockThreshold
impl Clone for HarmBlockThreshold
§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 more§impl Debug for HarmBlockThreshold
impl Debug for HarmBlockThreshold
§impl<'de> Deserialize<'de> for HarmBlockThreshold
impl<'de> Deserialize<'de> for HarmBlockThreshold
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HarmBlockThreshold, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HarmBlockThreshold, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for HarmBlockThreshold
impl PartialEq for HarmBlockThreshold
§impl Serialize for HarmBlockThreshold
impl Serialize for HarmBlockThreshold
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for HarmBlockThreshold
impl Eq for HarmBlockThreshold
impl StructuralPartialEq for HarmBlockThreshold
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more