#[repr(i32)]pub enum AuthMethod {
OauthGoogle = 0,
OauthFacebook = 1,
OauthAzureAd = 2,
Local = 3,
}Expand description
Vehicle Model Type Enum
Variants§
OauthGoogle = 0
OAUTH Google
OauthFacebook = 1
OAUTH Facebook
OauthAzureAd = 2
OAUTH Azure ID
Local = 3
LOCAL / Password
Implementations§
§impl AuthMethod
impl AuthMethod
§impl AuthMethod
impl AuthMethod
pub 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.
pub fn from_str_name(value: &str) -> Option<AuthMethod>
pub fn from_str_name(value: &str) -> Option<AuthMethod>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
§impl Clone for AuthMethod
impl Clone for AuthMethod
§fn clone(&self) -> AuthMethod
fn clone(&self) -> AuthMethod
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for AuthMethod
impl Debug for AuthMethod
§impl Default for AuthMethod
impl Default for AuthMethod
§fn default() -> AuthMethod
fn default() -> AuthMethod
Returns the “default value” for a type. Read more
§impl FromPrimitive for AuthMethod
impl FromPrimitive for AuthMethod
§fn from_i64(n: i64) -> Option<AuthMethod>
fn from_i64(n: i64) -> Option<AuthMethod>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.§fn from_u64(n: u64) -> Option<AuthMethod>
fn from_u64(n: u64) -> Option<AuthMethod>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more§impl Hash for AuthMethod
impl Hash for AuthMethod
§impl Ord for AuthMethod
impl Ord for AuthMethod
§impl PartialEq for AuthMethod
impl PartialEq for AuthMethod
§fn eq(&self, other: &AuthMethod) -> bool
fn eq(&self, other: &AuthMethod) -> bool
This method tests for
self and other values to be equal, and is used
by ==.§impl PartialOrd for AuthMethod
impl PartialOrd for AuthMethod
§fn partial_cmp(&self, other: &AuthMethod) -> Option<Ordering>
fn partial_cmp(&self, other: &AuthMethod) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more§impl TryFrom<i32> for AuthMethod
impl TryFrom<i32> for AuthMethod
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
§fn try_from(value: i32) -> Result<AuthMethod, DecodeError>
fn try_from(value: i32) -> Result<AuthMethod, DecodeError>
Performs the conversion.
impl Copy for AuthMethod
impl Eq for AuthMethod
impl StructuralEq for AuthMethod
impl StructuralPartialEq for AuthMethod
Auto Trait Implementations§
impl RefUnwindSafe for AuthMethod
impl Send for AuthMethod
impl Sync for AuthMethod
impl Unpin for AuthMethod
impl UnwindSafe for AuthMethod
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
Mutably borrows from an owned value. Read more
§impl<T> CallHasher for T
impl<T> CallHasher for 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
Compare self to
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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
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>
Wrap the input message
T in a tonic::Request