github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/rust/src/models/repository_restore_status.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 RepositoryRestoreStatus { 15 /// ID of the task 16 #[serde(rename = "id")] 17 pub id: String, 18 #[serde(rename = "done")] 19 pub done: bool, 20 #[serde(rename = "update_time")] 21 pub update_time: String, 22 #[serde(rename = "error", skip_serializing_if = "Option::is_none")] 23 pub error: Option<String>, 24 } 25 26 impl RepositoryRestoreStatus { 27 pub fn new(id: String, done: bool, update_time: String) -> RepositoryRestoreStatus { 28 RepositoryRestoreStatus { 29 id, 30 done, 31 update_time, 32 error: None, 33 } 34 } 35 } 36