pub struct Verdict {
pub status: VerdictStatus,
pub degraded: bool,
pub summary: String,
pub evidence: Vec<AssetRef>,
pub supersedes: Option<String>,
}Expand description
A folded step verdict (spine §2 concept 12). Append-only history:
re-judgement produces a new verdict with supersedes set.
Fields§
§status: VerdictStatusThree-valued status (unknown never folds to pass).
degraded: boolWhether the pass rests on a degraded verify channel or an unauthorized provider-internal fallback (spine §6.3/§6.4).
summary: StringHuman-readable folding summary (provider write path caps this at 16384 chars, spine §4.2).
evidence: Vec<AssetRef>Evidence citations (provider write path caps at 64, spine §4.2).
supersedes: Option<String>Id of the verdict this one supersedes, for re-judgement lineage.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Verdict
impl<'de> Deserialize<'de> for Verdict
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Verdict, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Verdict, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for Verdict
impl JsonSchema for Verdict
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for Verdict
impl Serialize for Verdict
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Verdict
Auto Trait Implementations§
impl Freeze for Verdict
impl RefUnwindSafe for Verdict
impl Send for Verdict
impl Sync for Verdict
impl Unpin for Verdict
impl UnsafeUnpin for Verdict
impl UnwindSafe for Verdict
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