redfish-codegen 0.3.1

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


/// The settings to search a generic LDAP service.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct LDAPSearchSettings {
    /// The base distinguished names to use to search an external LDAP service.
    #[serde(rename = "BaseDistinguishedNames")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub base_distinguished_names: Option<Vec<String>>,
    /// The attribute name that contains the LDAP group name entry.
    #[serde(rename = "GroupNameAttribute")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub group_name_attribute: Option<String>,
    /// The attribute name that contains the groups for a user on the LDAP user entry.
    #[serde(rename = "GroupsAttribute")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub groups_attribute: Option<String>,
    /// The attribute name that contains the LDAP user's SSH public key entry.
    #[serde(rename = "SSHKeyAttribute")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub ssh_key_attribute: Option<String>,
    /// The attribute name that contains the LDAP user name entry.
    #[serde(rename = "UsernameAttribute")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub username_attribute: Option<String>,
}

impl crate::Metadata<'static> for LDAPSearchSettings {
    const JSON_SCHEMA: &'static str = "AccountService.v1_13_0.json";
}