Skip to main content

fastly_api/models/
automation_token_workspaces_meta.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 AutomationTokenWorkspacesMeta {
13    /// Number of results requested.
14    #[serde(rename = "limit")]
15    pub limit: i32,
16    /// Cursor for the next page. Empty string when there are no more results.
17    #[serde(rename = "next_cursor", skip_serializing_if = "Option::is_none")]
18    pub next_cursor: Option<String>,
19    /// Cursor for the previous page. Empty string when on the first page.
20    #[serde(rename = "previous_cursor", skip_serializing_if = "Option::is_none")]
21    pub previous_cursor: Option<String>,
22}
23
24impl AutomationTokenWorkspacesMeta {
25    pub fn new(limit: i32) -> AutomationTokenWorkspacesMeta {
26        AutomationTokenWorkspacesMeta {
27            limit,
28            next_cursor: None,
29            previous_cursor: None,
30        }
31    }
32}
33
34