github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/rust/src/models/error_no_acl.rs (about)

     1  /*
     2   * lakeFS API
     3   *
     4   * lakeFS HTTP API
     5   *
     6   * The version of the OpenAPI document: 1.0.0
     7   * Contact: services@treeverse.io
     8   * Generated by: https://openapi-generator.tech
     9   */
    10  
    11  use crate::models;
    12  
    13  #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
    14  pub struct ErrorNoAcl {
    15      /// short message explaining the error
    16      #[serde(rename = "message")]
    17      pub message: String,
    18      /// true if the group exists but has no ACL
    19      #[serde(rename = "no_acl", skip_serializing_if = "Option::is_none")]
    20      pub no_acl: Option<bool>,
    21  }
    22  
    23  impl ErrorNoAcl {
    24      pub fn new(message: String) -> ErrorNoAcl {
    25          ErrorNoAcl {
    26              message,
    27              no_acl: None,
    28          }
    29      }
    30  }
    31