github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/rust/src/models/presign_multipart_upload.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 PresignMultipartUpload { 15 #[serde(rename = "upload_id")] 16 pub upload_id: String, 17 #[serde(rename = "physical_address")] 18 pub physical_address: String, 19 #[serde(rename = "presigned_urls", skip_serializing_if = "Option::is_none")] 20 pub presigned_urls: Option<Vec<String>>, 21 } 22 23 impl PresignMultipartUpload { 24 pub fn new(upload_id: String, physical_address: String) -> PresignMultipartUpload { 25 PresignMultipartUpload { 26 upload_id, 27 physical_address, 28 presigned_urls: None, 29 } 30 } 31 } 32