pub struct StreamToken {
pub text: String,
pub is_final: bool,
pub finish_reason: Option<String>,
}
Expand description
Token for streaming responses
Fields§
§text: String
§is_final: bool
§finish_reason: Option<String>
Trait Implementations§
Source§impl Clone for StreamToken
impl Clone for StreamToken
Source§fn clone(&self) -> StreamToken
fn clone(&self) -> StreamToken
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 moreAuto Trait Implementations§
impl Freeze for StreamToken
impl RefUnwindSafe for StreamToken
impl Send for StreamToken
impl Sync for StreamToken
impl Unpin for StreamToken
impl UnwindSafe for StreamToken
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