pub struct StructuredOutput<T> { /* private fields */ }Expand description
Wrapper for parsing structured JSON output from LLM responses.
Implementations§
Source§impl<T: DeserializeOwned + JsonSchema> StructuredOutput<T>
impl<T: DeserializeOwned + JsonSchema> StructuredOutput<T>
Auto Trait Implementations§
impl<T> Freeze for StructuredOutput<T>where
PhantomData<T>: Freeze,
impl<T> RefUnwindSafe for StructuredOutput<T>where
PhantomData<T>: RefUnwindSafe,
impl<T> Send for StructuredOutput<T>where
PhantomData<T>: Send,
impl<T> Sync for StructuredOutput<T>where
PhantomData<T>: Sync,
impl<T> Unpin for StructuredOutput<T>where
PhantomData<T>: Unpin,
impl<T> UnsafeUnpin for StructuredOutput<T>where
PhantomData<T>: UnsafeUnpin,
impl<T> UnwindSafe for StructuredOutput<T>where
PhantomData<T>: UnwindSafe,
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