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 RiskDatasetRows {
    /// Dataset is the dataset the page was read from.
    #[serde(rename = "dataset", skip_serializing_if = "Option::is_none")]
    pub dataset: Option<String>,
    /// Digest is the version's fingerprint. An exported page that did not carry it would be bytes with no way to say which dataset they are.
    #[serde(rename = "digest", skip_serializing_if = "Option::is_none")]
    pub digest: Option<String>,
    /// Dims names what each coordinate of Point means, in Point's own order.
    #[serde(rename = "dims", skip_serializing_if = "Option::is_none")]
    pub dims: Option<Vec<String>>,
    /// Limit is the page size actually served: the one asked for, clamped to the plane's own bound of 5000. Fewer rows than Limit means the version ended.
    #[serde(rename = "limit", skip_serializing_if = "Option::is_none")]
    pub limit: Option<i32>,
    /// Offset is where this page starts in the version's own row order, which is by row id and therefore stable forever.
    #[serde(rename = "offset", skip_serializing_if = "Option::is_none")]
    pub offset: Option<i32>,
    /// Rows is the page. Never null.
    #[serde(rename = "rows", skip_serializing_if = "Option::is_none")]
    pub rows: Option<Vec<models::RiskDatasetRow>>,
    /// Version is which published version it was read from — the one asked for, or the newest published one when the request named none.
    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
    pub version: Option<i32>,
}

impl RiskDatasetRows {
    pub fn new() -> RiskDatasetRows {
        RiskDatasetRows {
            dataset: None,
            digest: None,
            dims: None,
            limit: None,
            offset: None,
            rows: None,
            version: None,
        }
    }
}