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 Genesis {
    /// At is the unix second the genesis root was computed.
    #[serde(rename = "at", skip_serializing_if = "Option::is_none")]
    pub at: Option<i32>,
    /// Block is the L1 block the anchoring transaction landed in. Set only once the receipt has been read; absent otherwise.
    #[serde(rename = "block", skip_serializing_if = "Option::is_none")]
    pub block: Option<i32>,
    /// ChainID is the EVM chain the root is committed to — the Hanzo L1 by default.
    #[serde(rename = "chainId", skip_serializing_if = "Option::is_none")]
    pub chain_id: Option<i32>,
    /// Note explains an unanchored genesis honestly — anchor wiring absent, or the submit error — rather than reporting a commit that did not happen.
    #[serde(rename = "note", skip_serializing_if = "Option::is_none")]
    pub note: Option<String>,
    /// Root is the 0x-prefixed keccak256 root of the founding allocation. It is ALWAYS computed, whether or not the on-chain anchor is wired, because the root is the tamper-evident witness.
    #[serde(rename = "root", skip_serializing_if = "Option::is_none")]
    pub root: Option<String>,
    /// Status is pending (root computed, not yet on-chain) or anchored (committed).
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    /// TxHash is the L1 transaction hash of the anchoring commit. Empty until anchored.
    #[serde(rename = "txHash", skip_serializing_if = "Option::is_none")]
    pub tx_hash: Option<String>,
}

impl Genesis {
    pub fn new() -> Genesis {
        Genesis {
            at: None,
            block: None,
            chain_id: None,
            note: None,
            root: None,
            status: None,
            tx_hash: None,
        }
    }
}