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
/*
* Asana
*
* This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/developer-docs/master/defs/asana_oas.yaml).
*
* The version of the OpenAPI document: 1.0
*
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct AttachmentResponseAllOf {
/// The time at which this resource was created.
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
pub created_at: Option<String>,
/// The URL containing the content of the attachment. *Note:* May be null if the attachment is hosted by [Box](https://www.box.com/). If present, this URL may only be valid for two minutes from the time of retrieval. You should avoid persisting this URL somewhere and just refresh it on demand to ensure you do not keep stale URLs.
#[serde(rename = "download_url", skip_serializing_if = "Option::is_none")]
pub download_url: Option<String>,
/// The service hosting the attachment. Valid values are `asana`, `dropbox`, `gdrive` and `box`.
#[serde(rename = "host", skip_serializing_if = "Option::is_none")]
pub host: Option<String>,
#[serde(rename = "parent", skip_serializing_if = "Option::is_none")]
pub parent: Option<Box<crate::models::TaskCompact>>,
/// The URL where the attachment can be viewed, which may be friendlier to users in a browser than just directing them to a raw file. May be null if no view URL exists for the service.
#[serde(rename = "view_url", skip_serializing_if = "Option::is_none")]
pub view_url: Option<String>,
}
impl AttachmentResponseAllOf {
pub fn new() -> AttachmentResponseAllOf {
AttachmentResponseAllOf {
created_at: None,
download_url: None,
host: None,
parent: None,
view_url: None,
}
}
}