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
52
53
54
55
/*
* 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
*/
/// Preview : A collection of rich text that will be displayed as a preview to another app. This is read-only except for a small group of whitelisted apps.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct Preview {
/// Some fallback text to display if unable to display the full preview.
#[serde(rename = "fallback", skip_serializing_if = "Option::is_none")]
pub fallback: Option<String>,
/// Text to display in the footer.
#[serde(rename = "footer", skip_serializing_if = "Option::is_none")]
pub footer: Option<String>,
/// Text to display in the header.
#[serde(rename = "header", skip_serializing_if = "Option::is_none")]
pub header: Option<String>,
/// Where the header will link to.
#[serde(rename = "header_link", skip_serializing_if = "Option::is_none")]
pub header_link: Option<String>,
/// HTML formatted text for the body of the preview.
#[serde(rename = "html_text", skip_serializing_if = "Option::is_none")]
pub html_text: Option<String>,
/// Text for the body of the preview.
#[serde(rename = "text", skip_serializing_if = "Option::is_none")]
pub text: Option<String>,
/// Text to display as the title.
#[serde(rename = "title", skip_serializing_if = "Option::is_none")]
pub title: Option<String>,
/// Where to title will link to.
#[serde(rename = "title_link", skip_serializing_if = "Option::is_none")]
pub title_link: Option<String>,
}
impl Preview {
/// A collection of rich text that will be displayed as a preview to another app. This is read-only except for a small group of whitelisted apps.
pub fn new() -> Preview {
Preview {
fallback: None,
footer: None,
header: None,
header_link: None,
html_text: None,
text: None,
title: None,
title_link: None,
}
}
}