fastly_api/models/logging_ftp_additional.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 LoggingFtpAdditional {
13 /// An hostname or IPv4 address.
14 #[serde(rename = "address", skip_serializing_if = "Option::is_none")]
15 pub address: Option<String>,
16 /// Hostname used.
17 #[serde(rename = "hostname", skip_serializing_if = "Option::is_none")]
18 pub hostname: Option<String>,
19 /// IPv4 address of the host.
20 #[serde(rename = "ipv4", skip_serializing_if = "Option::is_none")]
21 pub ipv4: Option<String>,
22 /// The password for the server. For anonymous use an email address.
23 #[serde(rename = "password", skip_serializing_if = "Option::is_none")]
24 pub password: Option<String>,
25 /// The path to upload log files to. If the path ends in `/` then it is treated as a directory.
26 #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
27 pub path: Option<String>,
28 /// A PGP public key that Fastly will use to encrypt your log files before writing them to disk.
29 #[serde(rename = "public_key", skip_serializing_if = "Option::is_none")]
30 pub public_key: Option<String>,
31 /// The username for the server. Can be anonymous.
32 #[serde(rename = "user", skip_serializing_if = "Option::is_none")]
33 pub user: Option<String>,
34}
35
36impl LoggingFtpAdditional {
37 pub fn new() -> LoggingFtpAdditional {
38 LoggingFtpAdditional {
39 address: None,
40 hostname: None,
41 ipv4: None,
42 password: None,
43 path: None,
44 public_key: None,
45 user: None,
46 }
47 }
48}
49
50