github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/rust/src/models/find_merge_base_result.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 FindMergeBaseResult {
    15      /// The commit ID of the merge source
    16      #[serde(rename = "source_commit_id")]
    17      pub source_commit_id: String,
    18      /// The commit ID of the merge destination
    19      #[serde(rename = "destination_commit_id")]
    20      pub destination_commit_id: String,
    21      /// The commit ID of the merge base
    22      #[serde(rename = "base_commit_id")]
    23      pub base_commit_id: String,
    24  }
    25  
    26  impl FindMergeBaseResult {
    27      pub fn new(source_commit_id: String, destination_commit_id: String, base_commit_id: String) -> FindMergeBaseResult {
    28          FindMergeBaseResult {
    29              source_commit_id,
    30              destination_commit_id,
    31              base_commit_id,
    32          }
    33      }
    34  }
    35