#[non_exhaustive]pub struct QualityMetadata {
pub iterations_used: u8,
pub max_iterations: u8,
pub passed: bool,
pub final_critique: Option<Critique>,
}Expand description
Metadata about a crate::QualityLoop run, returned alongside the
final value. Useful for telemetry — push it into a runlog or
emit as a tracing event.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.iterations_used: u8Iterations consumed before exit.
max_iterations: u8Maximum iterations the loop was configured with.
passed: boolWhether the loop converged on a passing critique.
final_critique: Option<Critique>The last critique observed. None if the loop short-circuited
before any critique ran.
Trait Implementations§
Source§impl Clone for QualityMetadata
impl Clone for QualityMetadata
Source§fn clone(&self) -> QualityMetadata
fn clone(&self) -> QualityMetadata
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 QualityMetadata
impl Debug for QualityMetadata
Source§impl Default for QualityMetadata
impl Default for QualityMetadata
Source§fn default() -> QualityMetadata
fn default() -> QualityMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for QualityMetadata
impl<'de> Deserialize<'de> for QualityMetadata
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 QualityMetadata
impl RefUnwindSafe for QualityMetadata
impl Send for QualityMetadata
impl Sync for QualityMetadata
impl Unpin for QualityMetadata
impl UnsafeUnpin for QualityMetadata
impl UnwindSafe for QualityMetadata
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