pub struct AiCallbackResult {
pub content: String,
pub model: String,
pub input_tokens: u32,
pub output_tokens: u32,
pub duration_ms: u64,
pub metadata: Value,
}Expand description
AI callback result
Fields§
§content: StringResponse content
model: StringModel used
input_tokens: u32Input tokens
output_tokens: u32Output tokens
duration_ms: u64Duration in milliseconds
metadata: ValueAdditional metadata
Trait Implementations§
Source§impl Clone for AiCallbackResult
impl Clone for AiCallbackResult
Source§fn clone(&self) -> AiCallbackResult
fn clone(&self) -> AiCallbackResult
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 AiCallbackResult
impl Debug for AiCallbackResult
Source§impl<'de> Deserialize<'de> for AiCallbackResult
impl<'de> Deserialize<'de> for AiCallbackResult
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 AiCallbackResult
impl RefUnwindSafe for AiCallbackResult
impl Send for AiCallbackResult
impl Sync for AiCallbackResult
impl Unpin for AiCallbackResult
impl UnsafeUnpin for AiCallbackResult
impl UnwindSafe for AiCallbackResult
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