#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct IkeProposalAuthenticationMethod {
#[serde(rename = "value", skip_serializing_if = "Option::is_none")]
pub value: Option<Value>,
#[serde(rename = "label", skip_serializing_if = "Option::is_none")]
pub label: Option<Label>,
}
impl IkeProposalAuthenticationMethod {
pub fn new() -> IkeProposalAuthenticationMethod {
IkeProposalAuthenticationMethod {
value: None,
label: None,
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Value {
#[serde(rename = "preshared-keys")]
PresharedKeys,
#[serde(rename = "certificates")]
Certificates,
#[serde(rename = "rsa-signatures")]
RsaSignatures,
#[serde(rename = "dsa-signatures")]
DsaSignatures,
}
impl Default for Value {
fn default() -> Value {
Self::PresharedKeys
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Label {
#[serde(rename = "Pre-shared keys")]
PreSharedKeys,
#[serde(rename = "Certificates")]
Certificates,
#[serde(rename = "RSA signatures")]
RsaSignatures,
#[serde(rename = "DSA signatures")]
DsaSignatures,
}
impl Default for Label {
fn default() -> Label {
Self::PreSharedKeys
}
}