scaleway_api_rs/models/
update_flexible_ip_request.rs

1/*
2 * Account API
3 *
4 * # Introduction  The Account API allows you to manage projects. Project is Scaleway’s resource management feature. Designed to help you organize your infrastructure and cloud services, the feature allows resources to be isolated and grouped into specific projects.
5 *
6 * The version of the OpenAPI document: v2
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct UpdateFlexibleIpRequest {
13    /// Description to associate with the Flexible IP, max 255 characters
14    #[serde(
15        rename = "description",
16        default,
17        with = "::serde_with::rust::double_option",
18        skip_serializing_if = "Option::is_none"
19    )]
20    pub description: Option<Option<String>>,
21    /// Tags to associate with the Flexible IP
22    #[serde(
23        rename = "tags",
24        default,
25        with = "::serde_with::rust::double_option",
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub tags: Option<Option<Vec<String>>>,
29    /// Reverse DNS value
30    #[serde(
31        rename = "reverse",
32        default,
33        with = "::serde_with::rust::double_option",
34        skip_serializing_if = "Option::is_none"
35    )]
36    pub reverse: Option<Option<String>>,
37}
38
39impl UpdateFlexibleIpRequest {
40    pub fn new() -> UpdateFlexibleIpRequest {
41        UpdateFlexibleIpRequest {
42            description: None,
43            tags: None,
44            reverse: None,
45        }
46    }
47}