pub struct GenerationStats {
pub tokens_used: usize,
pub time_elapsed: Duration,
pub files_generated: usize,
pub lines_generated: usize,
pub conflicts_detected: usize,
pub conflicts_resolved: usize,
}Expand description
Statistics about code generation
Fields§
§tokens_used: usizeNumber of tokens used in generation
time_elapsed: DurationTime elapsed during generation
files_generated: usizeNumber of files generated
lines_generated: usizeTotal lines of code generated
conflicts_detected: usizeNumber of conflicts detected
conflicts_resolved: usizeNumber of conflicts resolved
Trait Implementations§
Source§impl Clone for GenerationStats
impl Clone for GenerationStats
Source§fn clone(&self) -> GenerationStats
fn clone(&self) -> GenerationStats
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 GenerationStats
impl Debug for GenerationStats
Source§impl Default for GenerationStats
impl Default for GenerationStats
Source§impl<'de> Deserialize<'de> for GenerationStats
impl<'de> Deserialize<'de> for GenerationStats
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 GenerationStats
impl RefUnwindSafe for GenerationStats
impl Send for GenerationStats
impl Sync for GenerationStats
impl Unpin for GenerationStats
impl UnwindSafe for GenerationStats
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