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
/*
* Zernio API
*
* API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
*
* The version of the OpenAPI document: 1.0.4
* Contact: support@zernio.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetMediaPresignedUrl200Response {
/// Presigned URL to PUT your file to (expires in 1 hour)
#[serde(rename = "uploadUrl", skip_serializing_if = "Option::is_none")]
pub upload_url: Option<String>,
/// Public URL where the file will be accessible after upload. Served from the temp/ prefix by default (expires 7 days after upload) or from media/ when permanent is true.
#[serde(rename = "publicUrl", skip_serializing_if = "Option::is_none")]
pub public_url: Option<String>,
/// Storage key/path of the file. Prefixed temp/ by default, media/ when permanent is true.
#[serde(rename = "key", skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
/// Seconds until the presigned uploadUrl expires (always 3600)
#[serde(rename = "expiresIn", skip_serializing_if = "Option::is_none")]
pub expires_in: Option<i32>,
}
impl GetMediaPresignedUrl200Response {
pub fn new() -> GetMediaPresignedUrl200Response {
GetMediaPresignedUrl200Response {
upload_url: None,
public_url: None,
key: None,
expires_in: None,
}
}
}