github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/rust/src/models/prepare_gc_uncommitted_response.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 PrepareGcUncommittedResponse {
    15      #[serde(rename = "run_id")]
    16      pub run_id: String,
    17      /// location of uncommitted information data
    18      #[serde(rename = "gc_uncommitted_location")]
    19      pub gc_uncommitted_location: String,
    20      #[serde(rename = "continuation_token", skip_serializing_if = "Option::is_none")]
    21      pub continuation_token: Option<String>,
    22  }
    23  
    24  impl PrepareGcUncommittedResponse {
    25      pub fn new(run_id: String, gc_uncommitted_location: String) -> PrepareGcUncommittedResponse {
    26          PrepareGcUncommittedResponse {
    27              run_id,
    28              gc_uncommitted_location,
    29              continuation_token: None,
    30          }
    31      }
    32  }
    33