pub struct StructuredCompletionReducer<O: StructuredOutput> { /* private fields */ }Implementations§
Source§impl<O> StructuredCompletionReducer<O>where
O: StructuredOutput,
impl<O> StructuredCompletionReducer<O>where
O: StructuredOutput,
pub fn new() -> Self
pub fn state(&self) -> &StructuredCompletionState<O>
pub fn into_state(self) -> StructuredCompletionState<O>
pub fn apply( &mut self, event: &StructuredCompletionEvent<O>, ) -> Result<(), StructuredCompletionReductionError>
pub fn into_result( self, ) -> Result<StructuredCompletionResult<O>, StructuredCompletionReductionError>
Trait Implementations§
Source§impl<O> Default for StructuredCompletionReducer<O>where
O: StructuredOutput,
impl<O> Default for StructuredCompletionReducer<O>where
O: StructuredOutput,
Auto Trait Implementations§
impl<O> Freeze for StructuredCompletionReducer<O>where
O: Freeze,
impl<O> RefUnwindSafe for StructuredCompletionReducer<O>where
O: RefUnwindSafe,
impl<O> Send for StructuredCompletionReducer<O>
impl<O> Sync for StructuredCompletionReducer<O>
impl<O> Unpin for StructuredCompletionReducer<O>where
O: Unpin,
impl<O> UnsafeUnpin for StructuredCompletionReducer<O>where
O: UnsafeUnpin,
impl<O> UnwindSafe for StructuredCompletionReducer<O>where
O: 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