pub enum ClassifierResponseFormat {
JsonSchema,
JsonObject,
}Expand description
Provider-side structured-output mode used by a classifier judge.
Variants§
JsonSchema
Send the verdict schema through the provider’s strict JSON Schema wrapper.
JsonObject
Request a JSON object and enforce the verdict schema locally.
Trait Implementations§
Source§impl Clone for ClassifierResponseFormat
impl Clone for ClassifierResponseFormat
Source§fn clone(&self) -> ClassifierResponseFormat
fn clone(&self) -> ClassifierResponseFormat
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 ClassifierResponseFormat
impl Debug for ClassifierResponseFormat
Source§impl Default for ClassifierResponseFormat
impl Default for ClassifierResponseFormat
Source§fn default() -> ClassifierResponseFormat
fn default() -> ClassifierResponseFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClassifierResponseFormat
impl<'de> Deserialize<'de> for ClassifierResponseFormat
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 ClassifierResponseFormat
impl PartialEq for ClassifierResponseFormat
impl Copy for ClassifierResponseFormat
impl Eq for ClassifierResponseFormat
impl StructuralPartialEq for ClassifierResponseFormat
Auto Trait Implementations§
impl Freeze for ClassifierResponseFormat
impl RefUnwindSafe for ClassifierResponseFormat
impl Send for ClassifierResponseFormat
impl Sync for ClassifierResponseFormat
impl Unpin for ClassifierResponseFormat
impl UnsafeUnpin for ClassifierResponseFormat
impl UnwindSafe for ClassifierResponseFormat
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
Compare self to
key and return true if they are equal.