hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * Hanzo Cloud API
 *
 * 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/.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GraphResolveOut {
    /// AsOf is the instant this answer was taken at, RFC 3339: the one asked for, or the server's clock when none was.
    #[serde(rename = "as_of", skip_serializing_if = "Option::is_none")]
    pub as_of: Option<String>,
    /// Conflicts is every OTHER assertion knowable at AsOf, strongest first. They are not all disagreements: one that repeats the winner's value ranks below it and is listed here too.
    #[serde(rename = "conflicts", skip_serializing_if = "Option::is_none")]
    pub conflicts: Option<Vec<models::WireFact>>,
    /// Contested is true when at least one conflict claims a value different from the winner's. Any number of conflicts that all agree leaves it false.
    #[serde(rename = "contested", skip_serializing_if = "Option::is_none")]
    pub contested: Option<bool>,
    /// Entity is the entity the question named, echoed so a stored answer still says what it is about.
    #[serde(rename = "entity", skip_serializing_if = "Option::is_none")]
    pub entity: Option<String>,
    /// Known is false when this plane held nothing knowable at AsOf. That is an answer, not an error.
    #[serde(rename = "known", skip_serializing_if = "Option::is_none")]
    pub known: Option<bool>,
    /// Relation is the relation the question named, echoed for the same reason.
    #[serde(rename = "relation", skip_serializing_if = "Option::is_none")]
    pub relation: Option<String>,
    /// Truncated says this pair holds more assertions than one read returns, so the winner was decided from the most recent ceiling-full of them. It is reported because a provenance plane that trims silently is a plane that answers confidently and wrongly; narrow the question with as_of to see what it dropped.
    #[serde(rename = "truncated", skip_serializing_if = "Option::is_none")]
    pub truncated: Option<bool>,
    /// Winner is the assertion in force — the strongest of those knowable at AsOf under the order `rule` names. Absent exactly when Known is false.
    #[serde(rename = "winner", skip_serializing_if = "Option::is_none")]
    pub winner: Option<Box<models::WireFact>>,
}

impl GraphResolveOut {
    pub fn new() -> GraphResolveOut {
        GraphResolveOut {
            as_of: None,
            conflicts: None,
            contested: None,
            entity: None,
            known: None,
            relation: None,
            truncated: None,
            winner: None,
        }
    }
}