pub struct JSONChoiceStream {
pub delta: Delta,
pub finish_reason: Option<FinishReason>,
pub index: usize,
}Expand description
Represents a choice stream with its associated delta change.
Fields§
§delta: DeltaDelta change in the choice stream.
finish_reason: Option<FinishReason>Reason for finishing the choice stream.
index: usizeIndex of the choice stream.
Trait Implementations§
Source§impl Clone for JSONChoiceStream
impl Clone for JSONChoiceStream
Source§fn clone(&self) -> JSONChoiceStream
fn clone(&self) -> JSONChoiceStream
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 JSONChoiceStream
impl Debug for JSONChoiceStream
Source§impl<'de> Deserialize<'de> for JSONChoiceStream
impl<'de> Deserialize<'de> for JSONChoiceStream
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 JSONChoiceStream
impl RefUnwindSafe for JSONChoiceStream
impl Send for JSONChoiceStream
impl Sync for JSONChoiceStream
impl Unpin for JSONChoiceStream
impl UnwindSafe for JSONChoiceStream
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