pub struct VerdictEnvelopeV1 {
pub status: String,
pub reason_code: String,
pub human_message: String,
pub as_of: String,
pub rich_data: Option<Value>,
pub remediation: Option<Value>,
pub exploitability: Option<Value>,
pub availability: Option<Value>,
}Expand description
VerdictEnvelopeV1 — parsed shape of the verdict-envelope.v1.json
schema. Top-level fields are required; rich sub-objects are sparse and
#[serde(default)]-tolerant so the SDK can consume partial responses
during cycle-N spec evolution without forcing a recompile.
Sister of:
- sdk-js
VerdictEnvelopeV1Schema(zod) - sdk-py no struct (dict[str, Any] in Python)
- sdk-go
map[string]any(loose) — but Rust gets a typed struct.
Fields§
§status: String§reason_code: String§human_message: String§as_of: String§rich_data: Option<Value>§remediation: Option<Value>§exploitability: Option<Value>§availability: Option<Value>Trait Implementations§
Source§impl Clone for VerdictEnvelopeV1
impl Clone for VerdictEnvelopeV1
Source§fn clone(&self) -> VerdictEnvelopeV1
fn clone(&self) -> VerdictEnvelopeV1
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 VerdictEnvelopeV1
impl Debug for VerdictEnvelopeV1
Source§impl<'de> Deserialize<'de> for VerdictEnvelopeV1
impl<'de> Deserialize<'de> for VerdictEnvelopeV1
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 VerdictEnvelopeV1
impl RefUnwindSafe for VerdictEnvelopeV1
impl Send for VerdictEnvelopeV1
impl Sync for VerdictEnvelopeV1
impl Unpin for VerdictEnvelopeV1
impl UnsafeUnpin for VerdictEnvelopeV1
impl UnwindSafe for VerdictEnvelopeV1
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