pub struct GenerationAttempt {
pub prompt: String,
pub result: String,
pub quality_score: f32,
pub attempt_number: u32,
pub duration: Duration,
}Expand description
Information about a generation attempt
Fields§
§prompt: StringThe prompt used for this attempt
result: StringThe generated result
quality_score: f32Quality score for this attempt
attempt_number: u32Attempt number (1-based)
duration: DurationDuration of this attempt
Implementations§
Trait Implementations§
Source§impl Clone for GenerationAttempt
impl Clone for GenerationAttempt
Source§fn clone(&self) -> GenerationAttempt
fn clone(&self) -> GenerationAttempt
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 moreAuto Trait Implementations§
impl Freeze for GenerationAttempt
impl RefUnwindSafe for GenerationAttempt
impl Send for GenerationAttempt
impl Sync for GenerationAttempt
impl Unpin for GenerationAttempt
impl UnwindSafe for GenerationAttempt
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