#[non_exhaustive]pub struct AppliedFix {
pub proposal: FixProposal,
pub timestamp: SystemTime,
pub classifier_id: Option<Arc<str>>,
pub dry_run: bool,
pub input: Option<Arc<str>>,
}Expand description
A promoted FixProposal with runtime context.
Constructed only by Engine::fix at the moment a FixProposal meets
the confidence threshold. Never constructed by a rule or suggestion path.
Serves as the audit record: the NDJSON schema at contracts/audit-record.json
serializes this type.
classifier_id is an Arc<str> so promoting many fixes from a single
document only clones an atomic refcount, not the underlying string.
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.proposal: FixProposalThe original proposal that was applied.
timestamp: SystemTimeTimestamp of application (clock-injected).
classifier_id: Option<Arc<str>>Classifier identity from runtime config. None if not configured.
dry_run: booltrue if produced under --dry-run (FR-006).
input: Option<Arc<str>>Caller-supplied input identifier (file path, “-” for stdin, None if N/A).
Trait Implementations§
Source§impl Clone for AppliedFix
impl Clone for AppliedFix
Source§fn clone(&self) -> AppliedFix
fn clone(&self) -> AppliedFix
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 AppliedFix
impl RefUnwindSafe for AppliedFix
impl Send for AppliedFix
impl Sync for AppliedFix
impl Unpin for AppliedFix
impl UnsafeUnpin for AppliedFix
impl UnwindSafe for AppliedFix
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