github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/rust/src/models/group.rs (about)

     1  /*
     2   * lakeFS API
     3   *
     4   * lakeFS HTTP API
     5   *
     6   * The version of the OpenAPI document: 1.0.0
     7   * Contact: services@treeverse.io
     8   * Generated by: https://openapi-generator.tech
     9   */
    10  
    11  use crate::models;
    12  
    13  #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
    14  pub struct Group {
    15      #[serde(rename = "id")]
    16      pub id: String,
    17      #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    18      pub name: Option<String>,
    19      /// Unix Epoch in seconds
    20      #[serde(rename = "creation_date")]
    21      pub creation_date: i64,
    22  }
    23  
    24  impl Group {
    25      pub fn new(id: String, creation_date: i64) -> Group {
    26          Group {
    27              id,
    28              name: None,
    29              creation_date,
    30          }
    31      }
    32  }
    33