pub struct FormatModeSchema { /* private fields */ }
Expand description
Generic schema for providers that support format modes (JSON/YAML)
This schema doesn’t enforce structure, only output format. Useful for providers that can guarantee syntactically valid JSON or YAML but don’t support field-level constraints.
Implementations§
Trait Implementations§
Source§impl BaseSchema for FormatModeSchema
impl BaseSchema for FormatModeSchema
Source§fn from_examples(
_examples_data: &[ExampleData],
_attribute_suffix: &str,
) -> LangExtractResult<Box<dyn BaseSchema>>
fn from_examples( _examples_data: &[ExampleData], _attribute_suffix: &str, ) -> LangExtractResult<Box<dyn BaseSchema>>
Factory method to build a schema instance from example data
Source§fn to_provider_config(&self) -> HashMap<String, Value>
fn to_provider_config(&self) -> HashMap<String, Value>
Convert schema to provider-specific configuration Read more
Source§fn supports_strict_mode(&self) -> bool
fn supports_strict_mode(&self) -> bool
Whether the provider emits valid output without needing Markdown fences Read more
Source§fn sync_with_provider_kwargs(&mut self, kwargs: &HashMap<String, Value>)
fn sync_with_provider_kwargs(&mut self, kwargs: &HashMap<String, Value>)
Hook to update schema state based on provider kwargs Read more
Source§fn clone_box(&self) -> Box<dyn BaseSchema>
fn clone_box(&self) -> Box<dyn BaseSchema>
Clone this schema instance
Source§impl Clone for FormatModeSchema
impl Clone for FormatModeSchema
Source§fn clone(&self) -> FormatModeSchema
fn clone(&self) -> FormatModeSchema
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 moreAuto Trait Implementations§
impl Freeze for FormatModeSchema
impl RefUnwindSafe for FormatModeSchema
impl Send for FormatModeSchema
impl Sync for FormatModeSchema
impl Unpin for FormatModeSchema
impl UnwindSafe for FormatModeSchema
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