redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.


/// The credential bootstrapping settings for this interface.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct CredentialBootstrapping {
    /// An indication of whether credential bootstrapping is enabled after a reset for this interface.
    #[serde(rename = "EnableAfterReset")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enable_after_reset: Option<bool>,
    /// An indication of whether credential bootstrapping is enabled for this interface.
    #[serde(rename = "Enabled")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The role used for the bootstrap account created for this interface.
    #[serde(rename = "RoleId")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub role_id: Option<String>,
}

impl crate::Metadata<'static> for CredentialBootstrapping {
    const JSON_SCHEMA: &'static str = "HostInterface.v1_3_0.json";
}