scaleway_api_rs/models/
update_image_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 UpdateImageRequest {
13    /// A `public` image is pullable from internet without authentication, opposed to a `private` image. `inherit` will use the namespace `is_public` parameter
14    #[serde(rename = "visibility", skip_serializing_if = "Option::is_none")]
15    pub visibility: Option<Visibility>,
16}
17
18impl UpdateImageRequest {
19    pub fn new() -> UpdateImageRequest {
20        UpdateImageRequest { visibility: None }
21    }
22}
23
24/// A `public` image is pullable from internet without authentication, opposed to a `private` image. `inherit` will use the namespace `is_public` parameter
25#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
26pub enum Visibility {
27    #[serde(rename = "visibility_unknown")]
28    VisibilityUnknown,
29    #[serde(rename = "inherit")]
30    Inherit,
31    #[serde(rename = "public")]
32    Public,
33    #[serde(rename = "private")]
34    Private,
35}
36
37impl Default for Visibility {
38    fn default() -> Visibility {
39        Self::VisibilityUnknown
40    }
41}