pub struct VerificationCase {
pub schema_version: String,
pub case_id: VerificationCaseId,
pub class: VerificationCaseClass,
pub region: CaseRegion,
pub trace_ctx: TraceCtx,
pub attempt_id: AttemptId,
pub lifecycle_state: VerificationCaseLifecycleState,
pub terminal_disposition: Option<TerminalDisposition>,
pub non_authoritative: bool,
pub advisory_only: bool,
pub degraded: bool,
pub opened_at: String,
}Expand description
A single verification case tracking a governance issue from open to closed.
Cases are opened by the observation phase, assigned check plans, executed through verification attempts, and closed with a terminal disposition.
Fields§
§schema_version: String§case_id: VerificationCaseId§class: VerificationCaseClass§region: CaseRegion§trace_ctx: TraceCtx§attempt_id: AttemptId§lifecycle_state: VerificationCaseLifecycleState§terminal_disposition: Option<TerminalDisposition>§advisory_only: bool§degraded: bool§opened_at: StringImplementations§
Source§impl VerificationCase
impl VerificationCase
Sourcepub fn new(
class: VerificationCaseClass,
region: CaseRegion,
trace_ctx: TraceCtx,
attempt_id: AttemptId,
opened_at: impl Into<String>,
degraded: bool,
advisory_only: bool,
) -> Self
pub fn new( class: VerificationCaseClass, region: CaseRegion, trace_ctx: TraceCtx, attempt_id: AttemptId, opened_at: impl Into<String>, degraded: bool, advisory_only: bool, ) -> Self
Creates an open verification case with the supplied scope, trace, and degradation flags.
Sourcepub fn close(self, disposition: TerminalDisposition) -> Self
pub fn close(self, disposition: TerminalDisposition) -> Self
Closes the verification case with its terminal disposition.
Trait Implementations§
Source§impl Clone for VerificationCase
impl Clone for VerificationCase
Source§fn clone(&self) -> VerificationCase
fn clone(&self) -> VerificationCase
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 VerificationCase
impl Debug for VerificationCase
Source§impl<'de> Deserialize<'de> for VerificationCase
impl<'de> Deserialize<'de> for VerificationCase
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
impl Eq for VerificationCase
Source§impl JsonSchema for VerificationCase
impl JsonSchema for VerificationCase
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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 is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for VerificationCase
impl PartialEq for VerificationCase
Source§fn eq(&self, other: &VerificationCase) -> bool
fn eq(&self, other: &VerificationCase) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VerificationCase
impl Serialize for VerificationCase
impl StructuralPartialEq for VerificationCase
Auto Trait Implementations§
impl Freeze for VerificationCase
impl RefUnwindSafe for VerificationCase
impl Send for VerificationCase
impl Sync for VerificationCase
impl Unpin for VerificationCase
impl UnsafeUnpin for VerificationCase
impl UnwindSafe for VerificationCase
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