redfish-codegen 0.3.1

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


/// This action generates a new key-pair for a certificate and produces a certificate signing request.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct RekeyRequestBody {
    /// The challenge password to apply to the certificate for revocation requests.
    #[serde(rename = "ChallengePassword")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub challenge_password: Option<String>,
    /// The length of the key, in bits, if needed based on the KeyPairAlgorithm parameter value.
    #[serde(rename = "KeyBitLength")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub key_bit_length: Option<i64>,
    /// The curve ID to use with the key, if needed based on the KeyPairAlgorithm parameter value.
    #[serde(rename = "KeyCurveId")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub key_curve_id: Option<String>,
    /// The type of key-pair for use with signing algorithms.
    #[serde(rename = "KeyPairAlgorithm")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub key_pair_algorithm: Option<String>,
}

impl crate::Metadata<'static> for RekeyRequestBody {
    const JSON_SCHEMA: &'static str = "Certificate.v1_7_0.json";
}