Enum cohere_rust::api::chat::ChatStreamResponse
source · 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
source§fn eq(&self, other: &ChatStreamResponse) -> bool
fn eq(&self, other: &ChatStreamResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ChatStreamResponse
Auto Trait Implementations§
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