pub struct ChatResultMetadata {
pub model: Option<String>,
pub stop_reason: Option<String>,
pub usage: Option<UsageMetadata>,
}Expand description
Metadata from a chat model generation.
Fields§
§model: Option<String>The model that was used.
stop_reason: Option<String>Stop reason from the model.
usage: Option<UsageMetadata>Token usage information.
Trait Implementations§
Source§impl Clone for ChatResultMetadata
impl Clone for ChatResultMetadata
Source§fn clone(&self) -> ChatResultMetadata
fn clone(&self) -> ChatResultMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 ChatResultMetadata
impl Debug for ChatResultMetadata
Source§impl Default for ChatResultMetadata
impl Default for ChatResultMetadata
Source§fn default() -> ChatResultMetadata
fn default() -> ChatResultMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatResultMetadata
impl<'de> Deserialize<'de> for ChatResultMetadata
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 ChatResultMetadata
impl RefUnwindSafe for ChatResultMetadata
impl Send for ChatResultMetadata
impl Sync for ChatResultMetadata
impl Unpin for ChatResultMetadata
impl UnwindSafe for ChatResultMetadata
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