Skip to main content

fastly_api/models/
discovered_operation_get_extra.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 DiscoveredOperationGetExtra {
13    /// The current status of the operation.
14    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
15    pub status: Option<Status>,
16    /// The timestamp when the operation was last updated.
17    #[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
18    pub updated_at: Option<String>,
19    /// The timestamp when the operation was last seen in traffic.
20    #[serde(rename = "last_seen_at", skip_serializing_if = "Option::is_none")]
21    pub last_seen_at: Option<String>,
22}
23
24impl DiscoveredOperationGetExtra {
25    pub fn new() -> DiscoveredOperationGetExtra {
26        DiscoveredOperationGetExtra {
27            status: None,
28            updated_at: None,
29            last_seen_at: None,
30        }
31    }
32}
33
34/// The current status of the operation.
35#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
36pub enum Status {
37    #[serde(rename = "DISCOVERED")]
38    DISCOVERED,
39    #[serde(rename = "SAVED")]
40    SAVED,
41    #[serde(rename = "IGNORED")]
42    IGNORED,
43}
44
45impl Default for Status {
46    fn default() -> Status {
47        Self::DISCOVERED
48    }
49}
50