pub enum Response {
Show 13 variants
Preparation(Status),
Capabilities {
capabilities_version: u32,
proof_version: u32,
attribution_version: Option<u32>,
repair: bool,
standalone: bool,
standalone_repair: bool,
},
ProofEvents(Page),
Explanation(Box<Explanation>),
AttributedAssurance(Box<View>),
Baseline(Box<Baseline>),
Baselines(Vec<String>),
Comparison(Comparison),
Status(Status),
List(Vec<Status>),
Result(ResultDocument),
Chunk(Chunk),
Error(String),
}Expand description
A response or a stable user-facing error.
Variants§
Preparation(Status)
Optional preparation negotiation, status, or handoff acknowledgement.
Capabilities
Supported product contracts; does not claim an optional engine is installed.
Fields
§
capabilities_version: u32CAPABILITIES_VERSION; absent from 0.2 services, which decode as 1.
§
attribution_version: Option<u32>Ordinary-job requirement attribution view version; absent on older services.
ProofEvents(Page)
Ordered, resumable proof observations.
Explanation(Box<Explanation>)
Exact establishing evidence for a failure or proof.
AttributedAssurance(Box<View>)
Submitter-attributed ordinary Verus evidence.
Baseline(Box<Baseline>)
Independently retained immutable evidence.
Baselines(Vec<String>)
Immutable baseline names.
Comparison(Comparison)
Scoped, configuration-aware proof comparison.
Status(Status)
One status.
List(Vec<Status>)
Retained jobs, oldest first.
Result(ResultDocument)
A result with its lifecycle and provenance.
Chunk(Chunk)
Diagnostics or target events.
Error(String)
Stable error text, prefixed with a SAIL code.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
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 Forget for Response
impl Freeze for Response
impl Move for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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