pub struct StructuredCompletionResult<O: StructuredOutput> {
pub request_id: Option<String>,
pub model: String,
pub semantic: StructuredTurnOutcome<O>,
pub finish_reason: FinishReason,
pub usage: Usage,
}Fields§
§request_id: Option<String>§model: String§semantic: StructuredTurnOutcome<O>§finish_reason: FinishReason§usage: UsageTrait Implementations§
Source§impl<O: Clone + StructuredOutput> Clone for StructuredCompletionResult<O>
impl<O: Clone + StructuredOutput> Clone for StructuredCompletionResult<O>
Source§fn clone(&self) -> StructuredCompletionResult<O>
fn clone(&self) -> StructuredCompletionResult<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 StructuredCompletionResult<O>
impl<O: Debug + StructuredOutput> Debug for StructuredCompletionResult<O>
Source§impl<O: PartialEq + StructuredOutput> PartialEq for StructuredCompletionResult<O>
impl<O: PartialEq + StructuredOutput> PartialEq for StructuredCompletionResult<O>
Source§fn eq(&self, other: &StructuredCompletionResult<O>) -> bool
fn eq(&self, other: &StructuredCompletionResult<O>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<O: Eq + StructuredOutput> Eq for StructuredCompletionResult<O>
impl<O: StructuredOutput> StructuralPartialEq for StructuredCompletionResult<O>
Auto Trait Implementations§
impl<O> Freeze for StructuredCompletionResult<O>where
O: Freeze,
impl<O> RefUnwindSafe for StructuredCompletionResult<O>where
O: RefUnwindSafe,
impl<O> Send for StructuredCompletionResult<O>
impl<O> Sync for StructuredCompletionResult<O>
impl<O> Unpin for StructuredCompletionResult<O>where
O: Unpin,
impl<O> UnsafeUnpin for StructuredCompletionResult<O>where
O: UnsafeUnpin,
impl<O> UnwindSafe for StructuredCompletionResult<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