pub struct OpenAiJsonSchema {
pub name: Option<String>,
pub schema: Option<Value>,
pub strict: Option<bool>,
}Fields§
§name: Option<String>Optional name for the schema (ignored internally, kept for round-trip).
schema: Option<Value>The 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. Optional at deserialization time so the
HTTP layer can return an OpenAI-shaped param error for missing
schemas instead of Axum’s generic JSON rejection.
strict: Option<bool>OpenAI’s strict flag. When true, Ferrum rejects schemas outside the
currently supported guided-decoding subset instead of silently falling
back to best-effort JSON.
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 (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 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