pub enum StructuredCompletionEvent<O: StructuredOutput> {
Started {
request_id: Option<String>,
model: String,
},
StructuredOutputChunk {
json_delta: String,
},
StructuredOutputReady(O),
ReasoningDelta {
delta: String,
},
RefusalDelta {
delta: String,
},
Completed {
request_id: Option<String>,
finish_reason: FinishReason,
usage: Usage,
},
}Variants§
Trait Implementations§
Source§impl<O: Clone + StructuredOutput> Clone for StructuredCompletionEvent<O>
impl<O: Clone + StructuredOutput> Clone for StructuredCompletionEvent<O>
Source§fn clone(&self) -> StructuredCompletionEvent<O>
fn clone(&self) -> StructuredCompletionEvent<O>
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<O: Debug + StructuredOutput> Debug for StructuredCompletionEvent<O>
impl<O: Debug + StructuredOutput> Debug for StructuredCompletionEvent<O>
Source§impl<O: PartialEq + StructuredOutput> PartialEq for StructuredCompletionEvent<O>
impl<O: PartialEq + StructuredOutput> PartialEq for StructuredCompletionEvent<O>
Source§fn eq(&self, other: &StructuredCompletionEvent<O>) -> bool
fn eq(&self, other: &StructuredCompletionEvent<O>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<O: StructuredOutput> StructuralPartialEq for StructuredCompletionEvent<O>
Auto Trait Implementations§
impl<O> Freeze for StructuredCompletionEvent<O>where
O: Freeze,
impl<O> RefUnwindSafe for StructuredCompletionEvent<O>where
O: RefUnwindSafe,
impl<O> Send for StructuredCompletionEvent<O>
impl<O> Sync for StructuredCompletionEvent<O>
impl<O> Unpin for StructuredCompletionEvent<O>where
O: Unpin,
impl<O> UnsafeUnpin for StructuredCompletionEvent<O>where
O: UnsafeUnpin,
impl<O> UnwindSafe for StructuredCompletionEvent<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