pub struct OpenAiJsonSchema {
pub name: Option<String>,
pub schema: Value,
pub strict: Option<bool>,
}Fields§
§name: Option<String>Optional name for the schema (ignored internally, kept for round-trip).
schema: ValueThe actual JSON Schema. Stored as raw JSON value so callers can pass any valid schema object; we re-serialise when forwarding to the guided-decoding pipeline.
strict: Option<bool>OpenAI’s strict flag. Currently advisory — we always enforce when
we can translate the schema.
Trait Implementations§
Source§impl Clone for OpenAiJsonSchema
impl Clone for OpenAiJsonSchema
Source§fn clone(&self) -> OpenAiJsonSchema
fn clone(&self) -> OpenAiJsonSchema
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 OpenAiJsonSchema
impl Debug for OpenAiJsonSchema
Source§impl<'de> Deserialize<'de> for OpenAiJsonSchema
impl<'de> Deserialize<'de> for OpenAiJsonSchema
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
Auto Trait Implementations§
impl Freeze for OpenAiJsonSchema
impl RefUnwindSafe for OpenAiJsonSchema
impl Send for OpenAiJsonSchema
impl Sync for OpenAiJsonSchema
impl Unpin for OpenAiJsonSchema
impl UnsafeUnpin for OpenAiJsonSchema
impl UnwindSafe for OpenAiJsonSchema
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