Enum google_api_proto::google::cloud::kms::v1::crypto_key_version::CryptoKeyVersionView
source · #[repr(i32)]pub enum CryptoKeyVersionView {
Unspecified = 0,
Full = 1,
}
Expand description
A view for [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]s. Controls the level of detail returned for [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] in [KeyManagementService.ListCryptoKeyVersions][google.cloud.kms.v1.KeyManagementService.ListCryptoKeyVersions] and [KeyManagementService.ListCryptoKeys][google.cloud.kms.v1.KeyManagementService.ListCryptoKeys].
Variants§
Unspecified = 0
Default view for each [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Does not include the [attestation][google.cloud.kms.v1.CryptoKeyVersion.attestation] field.
Full = 1
Provides all fields in each [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], including the [attestation][google.cloud.kms.v1.CryptoKeyVersion.attestation].
Implementations§
source§impl CryptoKeyVersionView
impl CryptoKeyVersionView
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of CryptoKeyVersionView
.
sourcepub fn from_i32(value: i32) -> Option<CryptoKeyVersionView>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<CryptoKeyVersionView>
Converts an i32
to a CryptoKeyVersionView
, or None
if value
is not a valid variant.
source§impl CryptoKeyVersionView
impl CryptoKeyVersionView
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 CryptoKeyVersionView
impl Clone for CryptoKeyVersionView
source§fn clone(&self) -> CryptoKeyVersionView
fn clone(&self) -> CryptoKeyVersionView
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CryptoKeyVersionView
impl Debug for CryptoKeyVersionView
source§impl Default for CryptoKeyVersionView
impl Default for CryptoKeyVersionView
source§fn default() -> CryptoKeyVersionView
fn default() -> CryptoKeyVersionView
source§impl From<CryptoKeyVersionView> for i32
impl From<CryptoKeyVersionView> for i32
source§fn from(value: CryptoKeyVersionView) -> i32
fn from(value: CryptoKeyVersionView) -> i32
source§impl Hash for CryptoKeyVersionView
impl Hash for CryptoKeyVersionView
source§impl Ord for CryptoKeyVersionView
impl Ord for CryptoKeyVersionView
source§fn cmp(&self, other: &CryptoKeyVersionView) -> Ordering
fn cmp(&self, other: &CryptoKeyVersionView) -> 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 CryptoKeyVersionView
impl PartialEq for CryptoKeyVersionView
source§fn eq(&self, other: &CryptoKeyVersionView) -> bool
fn eq(&self, other: &CryptoKeyVersionView) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CryptoKeyVersionView
impl PartialOrd for CryptoKeyVersionView
source§fn partial_cmp(&self, other: &CryptoKeyVersionView) -> Option<Ordering>
fn partial_cmp(&self, other: &CryptoKeyVersionView) -> 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 CryptoKeyVersionView
impl TryFrom<i32> for CryptoKeyVersionView
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<CryptoKeyVersionView, UnknownEnumValue>
fn try_from(value: i32) -> Result<CryptoKeyVersionView, UnknownEnumValue>
impl Copy for CryptoKeyVersionView
impl Eq for CryptoKeyVersionView
impl StructuralPartialEq for CryptoKeyVersionView
Auto Trait Implementations§
impl Freeze for CryptoKeyVersionView
impl RefUnwindSafe for CryptoKeyVersionView
impl Send for CryptoKeyVersionView
impl Sync for CryptoKeyVersionView
impl Unpin for CryptoKeyVersionView
impl UnwindSafe for CryptoKeyVersionView
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