pub struct StreamingChoice {
pub index: u32,
pub delta: DeltaMessage,
pub finish_reason: Option<String>,
pub native_finish_reason: Option<String>,
pub error: Option<ChoiceError>,
}Fields§
§index: u32§delta: DeltaMessage§finish_reason: Option<String>§native_finish_reason: Option<String>§error: Option<ChoiceError>Trait Implementations§
Source§impl Clone for StreamingChoice
impl Clone for StreamingChoice
Source§fn clone(&self) -> StreamingChoice
fn clone(&self) -> StreamingChoice
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 Debug for StreamingChoice
impl Debug for StreamingChoice
Source§impl<'de> Deserialize<'de> for StreamingChoice
impl<'de> Deserialize<'de> for StreamingChoice
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 Freeze for StreamingChoice
impl RefUnwindSafe for StreamingChoice
impl Send for StreamingChoice
impl Sync for StreamingChoice
impl Unpin for StreamingChoice
impl UnwindSafe for StreamingChoice
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