Enum google_api_proto::google::cloud::iot::v1::GatewayAuthMethod
source · #[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 moresource§impl Debug for GatewayAuthMethod
impl Debug for GatewayAuthMethod
source§impl Default for GatewayAuthMethod
impl Default for GatewayAuthMethod
source§fn default() -> GatewayAuthMethod
fn default() -> GatewayAuthMethod
source§impl From<GatewayAuthMethod> for i32
impl From<GatewayAuthMethod> for i32
source§fn from(value: GatewayAuthMethod) -> i32
fn from(value: GatewayAuthMethod) -> i32
source§impl Hash for GatewayAuthMethod
impl Hash for GatewayAuthMethod
source§impl Ord for GatewayAuthMethod
impl Ord for GatewayAuthMethod
source§fn cmp(&self, other: &GatewayAuthMethod) -> Ordering
fn cmp(&self, other: &GatewayAuthMethod) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for GatewayAuthMethod
impl PartialEq for GatewayAuthMethod
source§fn eq(&self, other: &GatewayAuthMethod) -> bool
fn eq(&self, other: &GatewayAuthMethod) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for GatewayAuthMethod
impl PartialOrd for GatewayAuthMethod
source§fn partial_cmp(&self, other: &GatewayAuthMethod) -> Option<Ordering>
fn partial_cmp(&self, other: &GatewayAuthMethod) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for GatewayAuthMethod
impl TryFrom<i32> for GatewayAuthMethod
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<GatewayAuthMethod, UnknownEnumValue>
fn try_from(value: i32) -> Result<GatewayAuthMethod, UnknownEnumValue>
impl Copy for GatewayAuthMethod
impl Eq for GatewayAuthMethod
impl StructuralPartialEq for GatewayAuthMethod
Auto Trait Implementations§
impl Freeze for GatewayAuthMethod
impl RefUnwindSafe for GatewayAuthMethod
impl Send for GatewayAuthMethod
impl Sync for GatewayAuthMethod
impl Unpin for GatewayAuthMethod
impl UnwindSafe for GatewayAuthMethod
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request