pub struct TextOutputSchema;Expand description
Text output schema (returns String).
Trait Implementations§
Source§impl Clone for TextOutputSchema
impl Clone for TextOutputSchema
Source§fn clone(&self) -> TextOutputSchema
fn clone(&self) -> TextOutputSchema
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 TextOutputSchema
impl Debug for TextOutputSchema
Source§impl Default for TextOutputSchema
impl Default for TextOutputSchema
Source§fn default() -> TextOutputSchema
fn default() -> TextOutputSchema
Returns the “default value” for a type. Read more
Source§impl OutputSchema<String> for TextOutputSchema
impl OutputSchema<String> for TextOutputSchema
Source§fn parse_text(&self, text: &str) -> Result<String, OutputParseError>
fn parse_text(&self, text: &str) -> Result<String, OutputParseError>
Parse text output.
Source§fn json_schema(&self) -> Option<JsonValue>
fn json_schema(&self) -> Option<JsonValue>
Get the JSON schema for structured output.
Source§fn mode(&self) -> OutputMode
fn mode(&self) -> OutputMode
Get the output mode.
Source§fn parse_tool_call(
&self,
_name: &str,
_args: &JsonValue,
) -> Result<Output, OutputParseError>
fn parse_tool_call( &self, _name: &str, _args: &JsonValue, ) -> Result<Output, OutputParseError>
Parse tool call output.
Auto Trait Implementations§
impl Freeze for TextOutputSchema
impl RefUnwindSafe for TextOutputSchema
impl Send for TextOutputSchema
impl Sync for TextOutputSchema
impl Unpin for TextOutputSchema
impl UnwindSafe for TextOutputSchema
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