Skip to main content

hanzo_client/models/
risk_source_coverage.rs

1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct RiskSourceCoverage {
16    /// Facts is how many assertions this source filed; Won is how many judged events it was the assertion in force for. A source with many facts and few wins is one that is being outranked, which is worth knowing before concluding it is wired correctly.
17    #[serde(rename = "facts", skip_serializing_if = "Option::is_none")]
18    pub facts: Option<i32>,
19    /// Source is the asserter these two counts are for — chargeoff, dispute, case, refund, review or sample. There is one entry per source that either filed in the window or won in it, in precedence order, strongest first. A source no longer in the vocabulary still has rows and is reported after the known ones rather than dropped out of a total that is supposed to add up.
20    #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
21    pub source: Option<String>,
22    /// Won is how many JUDGED events this source's assertion was the one IN FORCE for, at that event's own as-of — it beat every other visible claim under the precedence rule. Summed over the sources it is Judged. Read against Facts it is the ratio that matters: many filed and few won is a source being outranked, not a source that is broken, and one source winning nearly everything is a plane that looks labelled because one noisy filer dominates it.
23    #[serde(rename = "won", skip_serializing_if = "Option::is_none")]
24    pub won: Option<i32>,
25}
26
27impl RiskSourceCoverage {
28    pub fn new() -> RiskSourceCoverage {
29        RiskSourceCoverage {
30            facts: None,
31            source: None,
32            won: None,
33        }
34    }
35}
36