pub struct StructuredChatCompletionResponse<S> { /* private fields */ }
Expand description
A response from a structured chat completion request.
Implementations§
Source§impl<S> StructuredChatCompletionResponse<S>
impl<S> StructuredChatCompletionResponse<S>
Sourcepub fn take_first_choice(
self,
) -> Option<StructuredChatCompletionResponseChoice<S>>
pub fn take_first_choice( self, ) -> Option<StructuredChatCompletionResponseChoice<S>>
Takes the first message in the response consumes the response.
Trait Implementations§
Source§impl<'de, S> Deserialize<'de> for StructuredChatCompletionResponse<S>where
S: DeserializeOwned,
impl<'de, S> Deserialize<'de> for StructuredChatCompletionResponse<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 StructuredChatCompletionResponse<S>
impl<S> RefUnwindSafe for StructuredChatCompletionResponse<S>where
S: RefUnwindSafe,
impl<S> Send for StructuredChatCompletionResponse<S>where
S: Send,
impl<S> Sync for StructuredChatCompletionResponse<S>where
S: Sync,
impl<S> Unpin for StructuredChatCompletionResponse<S>where
S: Unpin,
impl<S> UnwindSafe for StructuredChatCompletionResponse<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