hanzo_client/models/dataset_view.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 DatasetView {
16 /// CreatedAt is when the name was first written, kept across later edits.
17 #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
18 pub created_at: Option<String>,
19 /// Description is free text the org wrote about what this set measures.
20 #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
21 pub description: Option<String>,
22 /// Items is how many examples the set holds. It is filled only by the single read — a listing does not count, so it is absent there rather than zero.
23 #[serde(rename = "items", skip_serializing_if = "Option::is_none")]
24 pub items: Option<i32>,
25 /// Metadata is the free-form object stored with the set, echoed back verbatim.
26 #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
27 pub metadata: Option<std::collections::HashMap<String, serde_json::Value>>,
28 /// Name is the dataset's org-unique handle and the segment that addresses it.
29 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
30 pub name: Option<String>,
31 /// UpdatedAt is when the description or metadata last changed.
32 #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
33 pub updated_at: Option<String>,
34}
35
36impl DatasetView {
37 pub fn new() -> DatasetView {
38 DatasetView {
39 created_at: None,
40 description: None,
41 items: None,
42 metadata: None,
43 name: None,
44 updated_at: None,
45 }
46 }
47}
48