#[repr(i32)]pub enum GatewayAuthMethod {
Unspecified = 0,
AssociationOnly = 1,
DeviceAuthTokenOnly = 2,
AssociationAndDeviceAuthToken = 3,
}Expand description
The gateway authorization/authentication method. This setting determines how Cloud IoT Core authorizes/authenticate devices to access the gateway.
Variants§
Unspecified = 0
No authentication/authorization method specified. No devices are allowed to access the gateway.
AssociationOnly = 1
The device is authenticated through the gateway association only. Device credentials are ignored even if provided.
DeviceAuthTokenOnly = 2
The device is authenticated through its own credentials. Gateway association is not checked.
AssociationAndDeviceAuthToken = 3
The device is authenticated through both device credentials and gateway association. The device must be bound to the gateway and must provide its own credentials.
Implementations§
Source§impl GatewayAuthMethod
impl GatewayAuthMethod
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for GatewayAuthMethod
impl Clone for GatewayAuthMethod
Source§fn clone(&self) -> GatewayAuthMethod
fn clone(&self) -> GatewayAuthMethod
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more