pub struct LiveComparison {
pub definition: ComparisonDefinition,
pub compared_at_ms: Timestamp,
pub outcome: ComparisonOutcome,
pub historical_result: Option<String>,
pub live_result: Option<String>,
pub result: ResultChange,
pub identities: IdentityChanges,
pub observations: ObservationChanges,
pub cost: CostComparison,
pub other: OtherChanges,
pub exclusions: Vec<String>,
pub limitations: Vec<String>,
}Expand description
The comparison of a finished live run with a verified historical case.
Fields§
§definition: ComparisonDefinition§compared_at_ms: Timestamp§outcome: ComparisonOutcome§historical_result: Option<String>The historical and live outcome categories, by the adapter’s names.
live_result: Option<String>§result: ResultChange§identities: IdentityChanges§observations: ObservationChanges§cost: CostComparison§other: OtherChanges§exclusions: Vec<String>What was left out of the comparison, and why; at most 64.
limitations: Vec<String>What the comparison does not establish; at most 64.
Implementations§
Source§impl LiveComparison
impl LiveComparison
pub fn check(&self) -> Result<(), LiveDocError>
Trait Implementations§
Source§impl Clone for LiveComparison
impl Clone for LiveComparison
Source§impl Debug for LiveComparison
impl Debug for LiveComparison
Source§impl<'de> Deserialize<'de> for LiveComparison
impl<'de> Deserialize<'de> for LiveComparison
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 LiveComparison
Source§impl JsonSchema for LiveComparison
impl JsonSchema for LiveComparison
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 PartialEq for LiveComparison
impl PartialEq for LiveComparison
Source§impl Serialize for LiveComparison
impl Serialize for LiveComparison
impl StructuralPartialEq for LiveComparison
Auto Trait Implementations§
impl Freeze for LiveComparison
impl RefUnwindSafe for LiveComparison
impl Send for LiveComparison
impl Sync for LiveComparison
impl Unpin for LiveComparison
impl UnsafeUnpin for LiveComparison
impl UnwindSafe for LiveComparison
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