fastly_api/models/platform_metadata.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/// PlatformMetadata : Meta information about the scope of the query in a human readable format.
9
10
11
12#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
13pub struct PlatformMetadata {
14 /// An RFC-8339-formatted date and time indicating the inclusive start of the query time range.
15 #[serde(rename = "from", skip_serializing_if = "Option::is_none")]
16 pub from: Option<String>,
17 /// An RFC-8339-formatted date and time indicating the exclusive end of the query time range.
18 #[serde(rename = "to", skip_serializing_if = "Option::is_none")]
19 pub to: Option<String>,
20 /// A string that can be used to request the next page of results, if any.
21 #[serde(rename = "next_cursor", skip_serializing_if = "Option::is_none")]
22 pub next_cursor: Option<String>,
23 /// A comma-separated list of fields used to group and order the results.
24 #[serde(rename = "group_by", skip_serializing_if = "Option::is_none")]
25 pub group_by: Option<String>,
26 /// The maximum number of results to return.
27 #[serde(rename = "limit", skip_serializing_if = "Option::is_none")]
28 pub limit: Option<i32>,
29}
30
31impl PlatformMetadata {
32 /// Meta information about the scope of the query in a human readable format.
33 pub fn new() -> PlatformMetadata {
34 PlatformMetadata {
35 from: None,
36 to: None,
37 next_cursor: None,
38 group_by: None,
39 limit: None,
40 }
41 }
42}
43
44