#[non_exhaustive]pub struct ResponseTextJsonSchemaFormat {
pub name: String,
pub schema: Value,
pub description: Option<String>,
pub strict: Option<bool>,
}Expand description
EN: Builder value for JSON Schema structured text output. 中文:JSON Schema 结构化文本输出的构建值。
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringEN: Response format name. 中文:响应格式名称。
schema: ValueEN: JSON schema the model output should match. 中文:模型输出应匹配的 JSON schema。
description: Option<String>EN: Optional schema description. 中文:可选的 schema 描述。
strict: Option<bool>EN: Whether to enable strict schema adherence. 中文:是否启用严格 schema 遵循。
Implementations§
Source§impl ResponseTextJsonSchemaFormat
impl ResponseTextJsonSchemaFormat
Trait Implementations§
Source§impl Clone for ResponseTextJsonSchemaFormat
impl Clone for ResponseTextJsonSchemaFormat
Source§fn clone(&self) -> ResponseTextJsonSchemaFormat
fn clone(&self) -> ResponseTextJsonSchemaFormat
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 moreSource§impl Debug for ResponseTextJsonSchemaFormat
impl Debug for ResponseTextJsonSchemaFormat
Source§impl From<ResponseTextJsonSchemaFormat> for ResponseTextFormat
impl From<ResponseTextJsonSchemaFormat> for ResponseTextFormat
Source§fn from(format: ResponseTextJsonSchemaFormat) -> Self
fn from(format: ResponseTextJsonSchemaFormat) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ResponseTextJsonSchemaFormat
impl PartialEq for ResponseTextJsonSchemaFormat
Source§fn eq(&self, other: &ResponseTextJsonSchemaFormat) -> bool
fn eq(&self, other: &ResponseTextJsonSchemaFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResponseTextJsonSchemaFormat
Auto Trait Implementations§
impl Freeze for ResponseTextJsonSchemaFormat
impl RefUnwindSafe for ResponseTextJsonSchemaFormat
impl Send for ResponseTextJsonSchemaFormat
impl Sync for ResponseTextJsonSchemaFormat
impl Unpin for ResponseTextJsonSchemaFormat
impl UnsafeUnpin for ResponseTextJsonSchemaFormat
impl UnwindSafe for ResponseTextJsonSchemaFormat
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