github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/rust/src/models/comm_prefs_input.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 CommPrefsInput { 15 /// the provided email 16 #[serde(rename = "email", skip_serializing_if = "Option::is_none")] 17 pub email: Option<String>, 18 /// user preference to receive feature updates 19 #[serde(rename = "featureUpdates")] 20 pub feature_updates: bool, 21 /// user preference to receive security updates 22 #[serde(rename = "securityUpdates")] 23 pub security_updates: bool, 24 } 25 26 impl CommPrefsInput { 27 pub fn new(feature_updates: bool, security_updates: bool) -> CommPrefsInput { 28 CommPrefsInput { 29 email: None, 30 feature_updates, 31 security_updates, 32 } 33 } 34 } 35