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 OracleView {
    /// Feed is the trading pair this feed prices.
    #[serde(rename = "feed", skip_serializing_if = "Option::is_none")]
    pub feed: Option<String>,
    /// ID is the feed's own id, else its trading pair.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// Name is the feed's display name — the trading pair, e.g. \"LUX/USD\".
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Source is the oracle network the feed originates from; \"O-Chain\" by default.
    #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
    pub source: Option<String>,
    /// Status is \"active\" for a listed feed.
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    /// UpdatedAt is the feed's own timestamp, RFC 3339 UTC.
    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
    pub updated_at: Option<String>,
    /// Value is the feed's price, verbatim as the registry carries it.
    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
}

impl OracleView {
    pub fn new() -> OracleView {
        OracleView {
            feed: None,
            id: None,
            name: None,
            source: None,
            status: None,
            updated_at: None,
            value: None,
        }
    }
}