pub struct ChatCompletionEventPreview {
pub event_id: String,
pub correlation_id: String,
pub created_at: String,
pub extra_fields: HashMap<String, ExtraFieldsValue>,
pub nb_input_tokens: i32,
pub nb_output_tokens: i32,
}Fields§
§event_id: String§correlation_id: String§created_at: String§extra_fields: HashMap<String, ExtraFieldsValue>§nb_input_tokens: i32§nb_output_tokens: i32Implementations§
Trait Implementations§
Source§impl Clone for ChatCompletionEventPreview
impl Clone for ChatCompletionEventPreview
Source§fn clone(&self) -> ChatCompletionEventPreview
fn clone(&self) -> ChatCompletionEventPreview
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 ChatCompletionEventPreview
impl Debug for ChatCompletionEventPreview
Source§impl Default for ChatCompletionEventPreview
impl Default for ChatCompletionEventPreview
Source§fn default() -> ChatCompletionEventPreview
fn default() -> ChatCompletionEventPreview
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatCompletionEventPreview
impl<'de> Deserialize<'de> for ChatCompletionEventPreview
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
impl StructuralPartialEq for ChatCompletionEventPreview
Auto Trait Implementations§
impl Freeze for ChatCompletionEventPreview
impl RefUnwindSafe for ChatCompletionEventPreview
impl Send for ChatCompletionEventPreview
impl Sync for ChatCompletionEventPreview
impl Unpin for ChatCompletionEventPreview
impl UnsafeUnpin for ChatCompletionEventPreview
impl UnwindSafe for ChatCompletionEventPreview
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