/*
* Orvanta API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 3.0.0
* Contact: contact@orvanta.cloud
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListFeatures200Response {
#[serde(rename = "keys")]
pub keys: Vec<String>,
#[serde(rename = "beta")]
pub beta: bool,
/// 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. Additive and deliberately NOT in `required` (#729): during a rolling upgrade an old backend predating this field won't send it, and a generated client that required it would mis-type a valid response as invalid.
#[serde(rename = "features", skip_serializing_if = "Option::is_none")]
pub features: Option<Vec<models::ListFeatures200ResponseFeaturesInner>>,
}
impl ListFeatures200Response {
pub fn new(keys: Vec<String>, beta: bool) -> ListFeatures200Response {
ListFeatures200Response {
keys,
beta,
features: None,
}
}
}