github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/rust/src/models/object_error_list.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 ObjectErrorList { 15 #[serde(rename = "errors")] 16 pub errors: Vec<models::ObjectError>, 17 } 18 19 impl ObjectErrorList { 20 pub fn new(errors: Vec<models::ObjectError>) -> ObjectErrorList { 21 ObjectErrorList { 22 errors, 23 } 24 } 25 } 26