github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/rust/src/models/cherry_pick_creation.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 CherryPickCreation { 15 /// the commit to cherry-pick, given by a ref 16 #[serde(rename = "ref")] 17 pub r#ref: String, 18 /// When cherry-picking a merge commit, the parent number (starting from 1) with which to perform the diff. The default branch is parent 1. 19 #[serde(rename = "parent_number", skip_serializing_if = "Option::is_none")] 20 pub parent_number: Option<i32>, 21 #[serde(rename = "force", skip_serializing_if = "Option::is_none")] 22 pub force: Option<bool>, 23 } 24 25 impl CherryPickCreation { 26 pub fn new(r#ref: String) -> CherryPickCreation { 27 CherryPickCreation { 28 r#ref, 29 parent_number: None, 30 force: None, 31 } 32 } 33 } 34