fastly_api/models/website.rs
1/*
2 * Fastly API
3 *
4 * Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/)
5 *
6 */
7
8
9
10
11#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct Website {
13 /// Unique website identifier
14 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
15 pub id: Option<String>,
16 /// Website domain
17 #[serde(rename = "domain", skip_serializing_if = "Option::is_none")]
18 pub domain: Option<String>,
19 /// IDs of pages associated with this website
20 #[serde(rename = "page_ids", skip_serializing_if = "Option::is_none")]
21 pub page_ids: Option<Vec<String>>,
22 #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
23 pub created_at: Option<String>,
24 #[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
25 pub updated_at: Option<String>,
26}
27
28impl Website {
29 pub fn new() -> Website {
30 Website {
31 id: None,
32 domain: None,
33 page_ids: None,
34 created_at: None,
35 updated_at: None,
36 }
37 }
38}
39
40