Struct async_openai::types::ChatChoiceDelta
source · pub struct ChatChoiceDelta {
pub index: u32,
pub delta: ChatCompletionResponseStreamMessage,
pub finish_reason: Option<String>,
}
Fields§
§index: u32
§delta: ChatCompletionResponseStreamMessage
§finish_reason: Option<String>
Trait Implementations§
source§impl Clone for ChatChoiceDelta
impl Clone for ChatChoiceDelta
source§fn clone(&self) -> ChatChoiceDelta
fn clone(&self) -> ChatChoiceDelta
Returns a copy 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 Debug for ChatChoiceDelta
impl Debug for ChatChoiceDelta
source§impl<'de> Deserialize<'de> for ChatChoiceDelta
impl<'de> Deserialize<'de> for ChatChoiceDelta
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
source§impl PartialEq<ChatChoiceDelta> for ChatChoiceDelta
impl PartialEq<ChatChoiceDelta> for ChatChoiceDelta
source§fn eq(&self, other: &ChatChoiceDelta) -> bool
fn eq(&self, other: &ChatChoiceDelta) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ChatChoiceDelta
impl Serialize for ChatChoiceDelta
impl StructuralPartialEq for ChatChoiceDelta
Auto Trait Implementations§
impl RefUnwindSafe for ChatChoiceDelta
impl Send for ChatChoiceDelta
impl Sync for ChatChoiceDelta
impl Unpin for ChatChoiceDelta
impl UnwindSafe for ChatChoiceDelta
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