pub enum RemediationOutcome {
Present(Value),
NotInSubstrate,
Transient(String),
}Expand description
Outcome of a remediation fetch (CLEANLIB-733 Rust remediation client).
Mirrors the sdk-py/js/go RemediationOrAbsent discriminated union: a 404 is
a distinct, cacheable “no data” answer — never collapsed into a transient.
Variants§
Present(Value)
2xx — the sparse remediation composite (loosely-typed JSON, matching
the envelope remediation field shape).
NotInSubstrate
404 REMEDIATION_NOT_FOUND — a true, final “no remediation data for this
coordinate” answer, distinct from a transient failure.
Transient(String)
5xx / transport — a transient failure; a retry may succeed.
Trait Implementations§
Source§impl Clone for RemediationOutcome
impl Clone for RemediationOutcome
Source§fn clone(&self) -> RemediationOutcome
fn clone(&self) -> RemediationOutcome
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 moreAuto Trait Implementations§
impl Freeze for RemediationOutcome
impl RefUnwindSafe for RemediationOutcome
impl Send for RemediationOutcome
impl Sync for RemediationOutcome
impl Unpin for RemediationOutcome
impl UnsafeUnpin for RemediationOutcome
impl UnwindSafe for RemediationOutcome
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