pub enum ChatStreamResponse {
ChatStreamStart {
generation_id: String,
is_finished: bool,
},
ChatTextGeneration {
is_finished: bool,
text: String,
},
ChatStreamEnd {
finish_reason: String,
is_finished: bool,
response: ChatResponse,
},
}
Variants§
Trait Implementations§
Source§impl Debug for ChatStreamResponse
impl Debug for ChatStreamResponse
Source§impl<'de> Deserialize<'de> for ChatStreamResponse
impl<'de> Deserialize<'de> for ChatStreamResponse
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 PartialEq for ChatStreamResponse
impl PartialEq for ChatStreamResponse
impl StructuralPartialEq for ChatStreamResponse
Auto Trait Implementations§
impl Freeze for ChatStreamResponse
impl RefUnwindSafe for ChatStreamResponse
impl Send for ChatStreamResponse
impl Sync for ChatStreamResponse
impl Unpin for ChatStreamResponse
impl UnwindSafe for ChatStreamResponse
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