redfish_codegen/models/service_root/v1_16_0/
expand.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The information about the use of $expand in the service.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct Expand {
9    /// An indication of whether the service supports the asterisk (`*`) option of the $expand query parameter.
10    #[serde(rename = "ExpandAll")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub expand_all: Option<bool>,
13    /// An indication of whether the service supports the $levels option of the $expand query parameter.
14    #[serde(rename = "Levels")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub levels: Option<bool>,
17    /// An indication of whether this service supports the tilde (`~`) option of the $expand query parameter.
18    #[serde(rename = "Links")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub links: Option<bool>,
21    /// The maximum $levels option value in the $expand query parameter.
22    #[serde(rename = "MaxLevels")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub max_levels: Option<i64>,
25    /// An indication of whether the service supports the period (`.`) option of the $expand query parameter.
26    #[serde(rename = "NoLinks")]
27    #[serde(default, skip_serializing_if = "Option::is_none")]
28    pub no_links: Option<bool>,
29}
30
31impl crate::Metadata<'static> for Expand {
32    const JSON_SCHEMA: &'static str = "ServiceRoot.v1_16_0.json";
33}