exoscale/models/
public_ip_assignment.rs

1/*
2 * Exoscale Public API
3 *
4 *  Infrastructure automation API, allowing programmatic access to all Exoscale products and services.  The [OpenAPI Specification](http://spec.openapis.org/oas/v3.0.3.html) source of this documentation can be obtained here:  * [JSON format](https://bump.sh/doc/exoscale-api.json) * [YAML format](https://bump.sh/doc/exoscale-api.yaml)
5 *
6 * The version of the OpenAPI document: 2.0.0
7 * Contact: api@exoscale.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11///
12#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
13pub enum PublicIpAssignment {
14    #[serde(rename = "inet4")]
15    Inet4,
16    #[serde(rename = "dual")]
17    Dual,
18}
19
20impl ToString for PublicIpAssignment {
21    fn to_string(&self) -> String {
22        match self {
23            Self::Inet4 => String::from("inet4"),
24            Self::Dual => String::from("dual"),
25        }
26    }
27}
28
29impl Default for PublicIpAssignment {
30    fn default() -> PublicIpAssignment {
31        Self::Inet4
32    }
33}