redfish_codegen/models/resource/v1_8_10/
contact_info.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// Contact information for this resource.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct ContactInfo {
9    /// Name of this contact.
10    #[serde(rename = "ContactName")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub contact_name: Option<String>,
13    /// Email address for this contact.
14    #[serde(rename = "EmailAddress")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub email_address: Option<String>,
17    /// Phone number for this contact.
18    #[serde(rename = "PhoneNumber")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub phone_number: Option<String>,
21}
22
23impl crate::Metadata<'static> for ContactInfo {
24    const JSON_SCHEMA: &'static str = "Resource.v1_8_10.json";
25}