Skip to main content

orvanta_api/models/
list_features_200_response.rs

1/*
2 * Orvanta API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 2.0.0
7 * Contact: contact@orvanta.cloud
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ListFeatures200Response {
16    #[serde(rename = "keys")]
17    pub keys: Vec<String>,
18    #[serde(rename = "beta")]
19    pub beta: bool,
20    /// one entry per capability this build actually carries (present in the binary and enabled for this deployment's flavour). Capabilities the binary does not implement are omitted entirely.
21    #[serde(rename = "features")]
22    pub features: Vec<models::ListFeatures200ResponseFeaturesInner>,
23}
24
25impl ListFeatures200Response {
26    pub fn new(keys: Vec<String>, beta: bool, features: Vec<models::ListFeatures200ResponseFeaturesInner>) -> ListFeatures200Response {
27        ListFeatures200Response {
28            keys,
29            beta,
30            features,
31        }
32    }
33}
34