pub struct StreamingCandidate {
pub content: Content,
pub finish_reason: Option<String>,
pub index: Option<usize>,
}
Expand description
Streaming candidate structure
Fields§
§content: Content
§finish_reason: Option<String>
§index: Option<usize>
Trait Implementations§
Source§impl Clone for StreamingCandidate
impl Clone for StreamingCandidate
Source§fn clone(&self) -> StreamingCandidate
fn clone(&self) -> StreamingCandidate
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 StreamingCandidate
impl Debug for StreamingCandidate
Source§impl<'de> Deserialize<'de> for StreamingCandidate
impl<'de> Deserialize<'de> for StreamingCandidate
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 StreamingCandidate
impl RefUnwindSafe for StreamingCandidate
impl Send for StreamingCandidate
impl Sync for StreamingCandidate
impl Unpin for StreamingCandidate
impl UnwindSafe for StreamingCandidate
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