pub struct StructuredChatCompletionResponseChoice<S> { /* private fields */ }
Implementations§
Source§impl<S> StructuredChatCompletionResponseChoice<S>
impl<S> StructuredChatCompletionResponseChoice<S>
Sourcepub fn message(self) -> OpenAIResult<S>
pub fn message(self) -> OpenAIResult<S>
Returns your desired type that was produced from OpenAI.
pub fn finish_reason(&self) -> FinishReason
pub fn index(&self) -> i32
Trait Implementations§
Source§impl<'de, S> Deserialize<'de> for StructuredChatCompletionResponseChoice<S>where
S: DeserializeOwned,
impl<'de, S> Deserialize<'de> for StructuredChatCompletionResponseChoice<S>where
S: DeserializeOwned,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<S> Freeze for StructuredChatCompletionResponseChoice<S>where
S: Freeze,
impl<S> RefUnwindSafe for StructuredChatCompletionResponseChoice<S>where
S: RefUnwindSafe,
impl<S> Send for StructuredChatCompletionResponseChoice<S>where
S: Send,
impl<S> Sync for StructuredChatCompletionResponseChoice<S>where
S: Sync,
impl<S> Unpin for StructuredChatCompletionResponseChoice<S>where
S: Unpin,
impl<S> UnwindSafe for StructuredChatCompletionResponseChoice<S>where
S: 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