redfish_codegen/models/volume/v1_9_0/
operation.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct Operation {
9    #[serde(rename = "AssociatedFeaturesRegistry")]
10    #[serde(default, skip_serializing_if = "Option::is_none")]
11    pub associated_features_registry: Option<models::odata_v4::IdRef>,
12    #[serde(rename = "Operation")]
13    #[serde(default, skip_serializing_if = "Option::is_none")]
14    pub operation: Option<models::volume::OperationType>,
15    /// The name of the operation.
16    #[serde(rename = "OperationName")]
17    #[serde(default, skip_serializing_if = "Option::is_none")]
18    pub operation_name: Option<String>,
19    /// The percentage of the operation that has been completed.
20    #[serde(rename = "PercentageComplete")]
21    #[serde(default, skip_serializing_if = "Option::is_none")]
22    pub percentage_complete: Option<i64>,
23}
24
25impl crate::Metadata<'static> for Operation {
26    const JSON_SCHEMA: &'static str = "Volume.v1_9_0.json";
27}