github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/rust/src/models/external_principal_list.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 ExternalPrincipalList {
    15      #[serde(rename = "pagination")]
    16      pub pagination: Box<models::Pagination>,
    17      #[serde(rename = "results")]
    18      pub results: Vec<models::ExternalPrincipal>,
    19  }
    20  
    21  impl ExternalPrincipalList {
    22      pub fn new(pagination: models::Pagination, results: Vec<models::ExternalPrincipal>) -> ExternalPrincipalList {
    23          ExternalPrincipalList {
    24              pagination: Box::new(pagination),
    25              results,
    26          }
    27      }
    28  }
    29