#[repr(i32)]pub enum Purpose {
PURPOSE_UNSPECIFIED = 0,
STORAGE = 1,
SERVICE = 2,
}Expand description
The purpose of a credential.
Variants§
PURPOSE_UNSPECIFIED = 0
STORAGE = 1
The credential is used to access external storage locations.
SERVICE = 2
The credential is used to access external services.
Implementations§
Source§impl Purpose
impl Purpose
Sourcepub const PurposeUnspecified: Self = Self::PURPOSE_UNSPECIFIED
pub const PurposeUnspecified: Self = Self::PURPOSE_UNSPECIFIED
Idiomatic alias for Self::PURPOSE_UNSPECIFIED; Debug prints the variant name.
Sourcepub const Storage: Self = Self::STORAGE
pub const Storage: Self = Self::STORAGE
Idiomatic alias for Self::STORAGE; Debug prints the variant name.
Sourcepub const Service: Self = Self::SERVICE
pub const Service: Self = Self::SERVICE
Idiomatic alias for Self::SERVICE; Debug prints the variant name.
Trait Implementations§
impl Copy for Purpose
Source§impl<'de> Deserialize<'de> for Purpose
impl<'de> Deserialize<'de> for Purpose
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Enumeration for Purpose
impl Enumeration for Purpose
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
The name of this enum variant as it appears in the
.proto file.impl Eq for Purpose
Source§impl ProtoElemJson for Purpose
impl ProtoElemJson for Purpose
Source§fn serialize_proto_json<S: Serializer>(
v: &Self,
s: S,
) -> Result<S::Ok, S::Error>
fn serialize_proto_json<S: Serializer>( v: &Self, s: S, ) -> Result<S::Ok, S::Error>
Serialize this value with proto3 JSON semantics.
Source§fn deserialize_proto_json<'de, D: Deserializer<'de>>(
d: D,
) -> Result<Self, D::Error>
fn deserialize_proto_json<'de, D: Deserializer<'de>>( d: D, ) -> Result<Self, D::Error>
Deserialize a value with proto3 JSON semantics.
impl StructuralPartialEq for Purpose
Auto Trait Implementations§
impl Freeze for Purpose
impl RefUnwindSafe for Purpose
impl Send for Purpose
impl Sync for Purpose
impl Unpin for Purpose
impl UnsafeUnpin for Purpose
impl UnwindSafe for Purpose
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