Skip to main content

fastly_api/models/
page.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 Page {
13    /// Unique page identifier
14    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
15    pub id: Option<String>,
16    /// Parent website ID
17    #[serde(rename = "website_id", skip_serializing_if = "Option::is_none")]
18    pub website_id: Option<String>,
19    /// Page name
20    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
21    pub name: Option<String>,
22    /// Page description
23    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
24    pub description: Option<String>,
25    /// Notification configurations for this page
26    #[serde(rename = "notifications", skip_serializing_if = "Option::is_none")]
27    pub notifications: Option<Vec<crate::models::Notification>>,
28    /// URL paths to monitor
29    #[serde(rename = "paths", skip_serializing_if = "Option::is_none")]
30    pub paths: Option<Vec<String>>,
31    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
32    pub created_at: Option<String>,
33    #[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
34    pub updated_at: Option<String>,
35}
36
37impl Page {
38    pub fn new() -> Page {
39        Page {
40            id: None,
41            website_id: None,
42            name: None,
43            description: None,
44            notifications: None,
45            paths: None,
46            created_at: None,
47            updated_at: None,
48        }
49    }
50}
51
52