mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-24 08:19:27 +00:00
Upgrade Rust SDK to spec 1.5.0
This commit is contained in:
35
src/models/finish_file_data_upload_request.rs
Normal file
35
src/models/finish_file_data_upload_request.rs
Normal file
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* VRChat API Documentation
|
||||
*
|
||||
*
|
||||
* Contact: me@ruby.js.org
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct FinishFileDataUploadRequest {
|
||||
/// Array of ETags uploaded.
|
||||
#[serde(rename = "etags", skip_serializing_if = "Option::is_none")]
|
||||
pub etags: Option<Vec<String>>,
|
||||
/// Always a zero in string form, despite how many parts uploaded.
|
||||
#[serde(rename = "nextPartNumber")]
|
||||
pub next_part_number: String,
|
||||
/// Always a zero in string form, despite how many parts uploaded.
|
||||
#[serde(rename = "maxParts")]
|
||||
pub max_parts: String,
|
||||
}
|
||||
|
||||
impl FinishFileDataUploadRequest {
|
||||
pub fn new(next_part_number: String, max_parts: String) -> FinishFileDataUploadRequest {
|
||||
FinishFileDataUploadRequest {
|
||||
etags: None,
|
||||
next_part_number,
|
||||
max_parts,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user