pub struct OllamaStreamChunk {
pub model: Option<String>,
pub message: Option<OllamaStreamMessage>,
pub done: bool,
pub prompt_eval_count: Option<u32>,
pub eval_count: Option<u32>,
}Expand description
Ollama 流式响应块
Fields§
§model: Option<String>§message: Option<OllamaStreamMessage>§done: bool§prompt_eval_count: Option<u32>§eval_count: Option<u32>Trait Implementations§
Source§impl Clone for OllamaStreamChunk
impl Clone for OllamaStreamChunk
Source§fn clone(&self) -> OllamaStreamChunk
fn clone(&self) -> OllamaStreamChunk
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OllamaStreamChunk
impl Debug for OllamaStreamChunk
Source§impl<'de> Deserialize<'de> for OllamaStreamChunk
impl<'de> Deserialize<'de> for OllamaStreamChunk
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 OllamaStreamChunk
impl RefUnwindSafe for OllamaStreamChunk
impl Send for OllamaStreamChunk
impl Sync for OllamaStreamChunk
impl Unpin for OllamaStreamChunk
impl UnsafeUnpin for OllamaStreamChunk
impl UnwindSafe for OllamaStreamChunk
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