redfish_codegen/models/manager_network_protocol/v1_9_1/
snmp_community.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// An SNMP community strings.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct SNMPCommunity {
10    #[serde(rename = "AccessMode")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub access_mode: Option<models::manager_network_protocol::v1_9_1::SNMPCommunityAccessMode>,
13    /// The SNMP community string.
14    #[serde(rename = "CommunityString")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub community_string: Option<String>,
17    /// The name of the SNMP community.
18    #[serde(rename = "Name")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub name: Option<String>,
21}
22
23impl crate::Metadata<'static> for SNMPCommunity {
24    const JSON_SCHEMA: &'static str = "ManagerNetworkProtocol.v1_9_1.json";
25}