lance-namespace-reqwest-client 0.8.6

This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lancedb.github.io/lance-namespace/spec/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lancedb.github.io/lance-namespace/spec/impls/rest for more details.
Documentation
/*
 * Lance Namespace Specification
 *
 * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts:  The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details.  The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. 
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BranchContents {
    /// Name of the branch this branch was created from. Absent when the branch was created from the main branch. 
    #[serde(rename = "parentBranch", skip_serializing_if = "Option::is_none")]
    pub parent_branch: Option<String>,
    /// Version of the parent (branch or main) this branch was created from
    #[serde(rename = "parentVersion")]
    pub parent_version: i64,
    /// Unix timestamp (in seconds) when the branch was created
    #[serde(rename = "createAt")]
    pub create_at: i64,
    /// Size of the branch's manifest file in bytes
    #[serde(rename = "manifestSize")]
    pub manifest_size: i64,
    /// Key-value metadata associated with the branch
    #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
    pub metadata: Option<std::collections::HashMap<String, String>>,
}

impl BranchContents {
    pub fn new(parent_version: i64, create_at: i64, manifest_size: i64) -> BranchContents {
        BranchContents {
            parent_branch: None,
            parent_version,
            create_at,
            manifest_size,
            metadata: None,
        }
    }
}