1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* Hotdata API
*
* Powerful data platform API for managed databases, queries, and analytics.
*
* The version of the OpenAPI document: 1.0.0
* Contact: developers@hotdata.dev
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// FinalizeUploadResponse : Response body for `POST /v1/uploads/{upload_id}/finalize`: the finalized upload, ready to be loaded into a managed table.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FinalizeUploadResponse {
#[serde(
rename = "content_type",
default,
with = "::serde_with::rust::double_option",
skip_serializing_if = "Option::is_none"
)]
pub content_type: Option<Option<String>>,
#[serde(rename = "created_at")]
pub created_at: String,
/// The validated size of the uploaded file in bytes.
#[serde(rename = "size_bytes")]
pub size_bytes: i64,
#[serde(rename = "status")]
pub status: String,
#[serde(rename = "upload_id")]
pub upload_id: String,
}
impl FinalizeUploadResponse {
/// Response body for `POST /v1/uploads/{upload_id}/finalize`: the finalized upload, ready to be loaded into a managed table.
pub fn new(
created_at: String,
size_bytes: i64,
status: String,
upload_id: String,
) -> FinalizeUploadResponse {
FinalizeUploadResponse {
content_type: None,
created_at,
size_bytes,
status,
upload_id,
}
}
}