github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/rust/src/models/merge.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 Merge {
    15      #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
    16      pub message: Option<String>,
    17      #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
    18      pub metadata: Option<std::collections::HashMap<String, String>>,
    19      /// In case of a merge conflict, this option will force the merge process to automatically favor changes from the dest branch ('dest-wins') or from the source branch('source-wins'). In case no selection is made, the merge process will fail in case of a conflict
    20      #[serde(rename = "strategy", skip_serializing_if = "Option::is_none")]
    21      pub strategy: Option<String>,
    22      #[serde(rename = "force", skip_serializing_if = "Option::is_none")]
    23      pub force: Option<bool>,
    24  }
    25  
    26  impl Merge {
    27      pub fn new() -> Merge {
    28          Merge {
    29              message: None,
    30              metadata: None,
    31              strategy: None,
    32              force: None,
    33          }
    34      }
    35  }
    36