pub enum BlockReason {
BlockReasonUnspecified,
Safety,
Other,
Blocklist,
ProhibitedContent,
ImageSafety,
}
Expand description
Reason why content was blocked
Variants§
BlockReasonUnspecified
Default value. This value is unused.
Safety
Prompt was blocked due to safety reasons. Inspect safetyRatings to understand which safety category blocked it.
Other
Prompt was blocked due to unknown reasons.
Blocklist
Prompt was blocked due to the terms which are included from the terminology blocklist.
ProhibitedContent
Prompt was blocked due to prohibited content.
ImageSafety
Candidates blocked due to unsafe image generation content.
Trait Implementations§
Source§impl Clone for BlockReason
impl Clone for BlockReason
Source§fn clone(&self) -> BlockReason
fn clone(&self) -> BlockReason
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 BlockReason
impl Debug for BlockReason
Source§impl<'de> Deserialize<'de> for BlockReason
impl<'de> Deserialize<'de> for BlockReason
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 BlockReason
impl PartialEq for BlockReason
Source§impl Serialize for BlockReason
impl Serialize for BlockReason
impl StructuralPartialEq for BlockReason
Auto Trait Implementations§
impl Freeze for BlockReason
impl RefUnwindSafe for BlockReason
impl Send for BlockReason
impl Sync for BlockReason
impl Unpin for BlockReason
impl UnwindSafe for BlockReason
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