pub struct OllamaStreamMessage {
pub role: Option<String>,
pub content: Option<String>,
}Expand description
Ollama 流式消息
Fields§
§role: Option<String>§content: Option<String>Trait Implementations§
Source§impl Clone for OllamaStreamMessage
impl Clone for OllamaStreamMessage
Source§fn clone(&self) -> OllamaStreamMessage
fn clone(&self) -> OllamaStreamMessage
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 OllamaStreamMessage
impl Debug for OllamaStreamMessage
Source§impl<'de> Deserialize<'de> for OllamaStreamMessage
impl<'de> Deserialize<'de> for OllamaStreamMessage
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 OllamaStreamMessage
impl RefUnwindSafe for OllamaStreamMessage
impl Send for OllamaStreamMessage
impl Sync for OllamaStreamMessage
impl Unpin for OllamaStreamMessage
impl UnsafeUnpin for OllamaStreamMessage
impl UnwindSafe for OllamaStreamMessage
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