pub struct OllamaChatResponse {
pub model: String,
pub created_at: String,
pub message: ChatMessage,
pub done_reason: Option<String>,
pub done: bool,
pub total_duration: Option<u64>,
pub load_duration: Option<u64>,
pub prompt_eval_count: Option<u32>,
pub prompt_eval_duration: Option<u64>,
pub eval_count: Option<u32>,
pub eval_duration: Option<u64>,
}Fields§
§model: String§created_at: String§message: ChatMessage§done_reason: Option<String>§done: bool§total_duration: Option<u64>§load_duration: Option<u64>§prompt_eval_count: Option<u32>§prompt_eval_duration: Option<u64>§eval_count: Option<u32>§eval_duration: Option<u64>Implementations§
Source§impl OllamaChatResponse
impl OllamaChatResponse
pub fn first_message(&self) -> String
Trait Implementations§
Source§impl Debug for OllamaChatResponse
impl Debug for OllamaChatResponse
Source§impl<'de> Deserialize<'de> for OllamaChatResponse
impl<'de> Deserialize<'de> for OllamaChatResponse
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 OllamaChatResponse
impl RefUnwindSafe for OllamaChatResponse
impl Send for OllamaChatResponse
impl Sync for OllamaChatResponse
impl Unpin for OllamaChatResponse
impl UnwindSafe for OllamaChatResponse
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