pub enum NegativePromptMode {
Auto,
Native,
Merge,
Reject,
}Expand description
Handling policy for a negative prompt.
Variants§
Trait Implementations§
Source§impl Clone for NegativePromptMode
impl Clone for NegativePromptMode
Source§fn clone(&self) -> NegativePromptMode
fn clone(&self) -> NegativePromptMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NegativePromptMode
Source§impl Debug for NegativePromptMode
impl Debug for NegativePromptMode
Source§impl Default for NegativePromptMode
impl Default for NegativePromptMode
Source§impl<'de> Deserialize<'de> for NegativePromptMode
impl<'de> Deserialize<'de> for NegativePromptMode
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 Display for NegativePromptMode
impl Display for NegativePromptMode
impl Eq for NegativePromptMode
Source§impl Hash for NegativePromptMode
impl Hash for NegativePromptMode
Source§impl JsonSchema for NegativePromptMode
impl JsonSchema for NegativePromptMode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for NegativePromptMode
impl Ord for NegativePromptMode
Source§fn cmp(&self, other: &NegativePromptMode) -> Ordering
fn cmp(&self, other: &NegativePromptMode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NegativePromptMode
impl PartialEq for NegativePromptMode
Source§impl PartialOrd for NegativePromptMode
impl PartialOrd for NegativePromptMode
Source§impl Serialize for NegativePromptMode
impl Serialize for NegativePromptMode
impl StructuralPartialEq for NegativePromptMode
Auto Trait Implementations§
impl Freeze for NegativePromptMode
impl RefUnwindSafe for NegativePromptMode
impl Send for NegativePromptMode
impl Sync for NegativePromptMode
impl Unpin for NegativePromptMode
impl UnsafeUnpin for NegativePromptMode
impl UnwindSafe for NegativePromptMode
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