github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/rust/src/models/garbage_collection_config.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 GarbageCollectionConfig { 15 /// Duration in seconds. Objects created in the recent grace_period will not be collected. 16 #[serde(rename = "grace_period", skip_serializing_if = "Option::is_none")] 17 pub grace_period: Option<i32>, 18 } 19 20 impl GarbageCollectionConfig { 21 pub fn new() -> GarbageCollectionConfig { 22 GarbageCollectionConfig { 23 grace_period: None, 24 } 25 } 26 } 27