Struct chat_flame_backend::api::model::StreamResponse
source · pub struct StreamResponse {
pub details: Option<StreamDetails>,
pub generated_text: Option<String>,
pub token: Token,
pub top_tokens: Option<Vec<Token>>,
}
Fields§
§details: Option<StreamDetails>
§generated_text: Option<String>
§token: Token
§top_tokens: Option<Vec<Token>>
Trait Implementations§
source§impl Clone for StreamResponse
impl Clone for StreamResponse
source§fn clone(&self) -> StreamResponse
fn clone(&self) -> StreamResponse
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 StreamResponse
impl Debug for StreamResponse
source§impl<'de> Deserialize<'de> for StreamResponse
impl<'de> Deserialize<'de> for StreamResponse
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 Serialize for StreamResponse
impl Serialize for StreamResponse
Auto Trait Implementations§
impl RefUnwindSafe for StreamResponse
impl Send for StreamResponse
impl Sync for StreamResponse
impl Unpin for StreamResponse
impl UnwindSafe for StreamResponse
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