pub struct ChatResponse {
pub content: String,
pub model: String,
pub prompt_tokens: u32,
pub completion_tokens: u32,
}Expand description
A completed chat response.
Fields§
§content: String§model: String§prompt_tokens: u32§completion_tokens: u32Trait Implementations§
Source§impl Clone for ChatResponse
impl Clone for ChatResponse
Source§fn clone(&self) -> ChatResponse
fn clone(&self) -> ChatResponse
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 ChatResponse
impl Debug for ChatResponse
impl Eq for ChatResponse
Source§impl PartialEq for ChatResponse
impl PartialEq for ChatResponse
Source§fn eq(&self, other: &ChatResponse) -> bool
fn eq(&self, other: &ChatResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChatResponse
Auto Trait Implementations§
impl Freeze for ChatResponse
impl RefUnwindSafe for ChatResponse
impl Send for ChatResponse
impl Sync for ChatResponse
impl Unpin for ChatResponse
impl UnsafeUnpin for ChatResponse
impl UnwindSafe for ChatResponse
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