pub enum ModelStructuredOutputLevel {
Unsupported,
Json,
JsonSchema,
}Expand description
Strength of structured final-output support.
Variants§
Unsupported
No machine-enforced structured output is required or supported.
Json
Complete normal output is guaranteed to be valid JSON, not a schema.
JsonSchema
Complete normal output is constrained to an accepted JSON Schema subset.
Trait Implementations§
Source§impl Clone for ModelStructuredOutputLevel
impl Clone for ModelStructuredOutputLevel
impl Copy for ModelStructuredOutputLevel
Source§impl Debug for ModelStructuredOutputLevel
impl Debug for ModelStructuredOutputLevel
Source§impl<'de> Deserialize<'de> for ModelStructuredOutputLevel
impl<'de> Deserialize<'de> for ModelStructuredOutputLevel
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
impl Eq for ModelStructuredOutputLevel
Source§impl Hash for ModelStructuredOutputLevel
impl Hash for ModelStructuredOutputLevel
Source§impl JsonSchema for ModelStructuredOutputLevel
impl JsonSchema for ModelStructuredOutputLevel
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 ModelStructuredOutputLevel
impl Ord for ModelStructuredOutputLevel
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ModelStructuredOutputLevel
impl PartialOrd for ModelStructuredOutputLevel
impl StructuralPartialEq for ModelStructuredOutputLevel
Auto Trait Implementations§
impl Forget for ModelStructuredOutputLevel
impl Freeze for ModelStructuredOutputLevel
impl Move for ModelStructuredOutputLevel
impl RefUnwindSafe for ModelStructuredOutputLevel
impl Send for ModelStructuredOutputLevel
impl Sync for ModelStructuredOutputLevel
impl Unpin for ModelStructuredOutputLevel
impl UnsafeUnpin for ModelStructuredOutputLevel
impl UnwindSafe for ModelStructuredOutputLevel
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