pub struct CommentaryOutput {
pub commentary: Commentary,
pub generation_time: f64,
pub tokens_used: u32,
pub truncated: bool,
pub suggested_improvements: Vec<String>,
}Expand description
Commentary output structure
Fields§
§commentary: CommentaryGenerated commentary
generation_time: f64Generation time in seconds
tokens_used: u32Number of tokens used
truncated: boolWhether the commentary was truncated
suggested_improvements: Vec<String>Suggested improvements
Trait Implementations§
Source§impl Clone for CommentaryOutput
impl Clone for CommentaryOutput
Source§fn clone(&self) -> CommentaryOutput
fn clone(&self) -> CommentaryOutput
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 CommentaryOutput
impl Debug for CommentaryOutput
Source§impl<'de> Deserialize<'de> for CommentaryOutput
impl<'de> Deserialize<'de> for CommentaryOutput
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 CommentaryOutput
impl RefUnwindSafe for CommentaryOutput
impl Send for CommentaryOutput
impl Sync for CommentaryOutput
impl Unpin for CommentaryOutput
impl UnsafeUnpin for CommentaryOutput
impl UnwindSafe for CommentaryOutput
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