[][src]Enum gcp_client::google::cloud::kms::v1::crypto_key::CryptoKeyPurpose

#[repr(i32)]pub enum CryptoKeyPurpose {
    Unspecified,
    EncryptDecrypt,
    AsymmetricSign,
    AsymmetricDecrypt,
}

[CryptoKeyPurpose][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose] describes the cryptographic capabilities of a [CryptoKey][google.cloud.kms.v1.CryptoKey]. A given key can only be used for the operations allowed by its purpose. For more information, see Key purposes.

Variants

Unspecified

Not specified.

EncryptDecrypt

[CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used with [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt] and [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt].

AsymmetricSign

[CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used with [AsymmetricSign][google.cloud.kms.v1.KeyManagementService.AsymmetricSign] and [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].

AsymmetricDecrypt

[CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used with [AsymmetricDecrypt][google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt] and [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].

Implementations

impl CryptoKeyPurpose[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of CryptoKeyPurpose.

pub fn from_i32(value: i32) -> Option<CryptoKeyPurpose>[src]

Converts an i32 to a CryptoKeyPurpose, or None if value is not a valid variant.

Trait Implementations

impl Clone for CryptoKeyPurpose[src]

impl Copy for CryptoKeyPurpose[src]

impl Debug for CryptoKeyPurpose[src]

impl Default for CryptoKeyPurpose[src]

impl Eq for CryptoKeyPurpose[src]

impl From<CryptoKeyPurpose> for i32[src]

impl Hash for CryptoKeyPurpose[src]

impl Ord for CryptoKeyPurpose[src]

impl PartialEq<CryptoKeyPurpose> for CryptoKeyPurpose[src]

impl PartialOrd<CryptoKeyPurpose> for CryptoKeyPurpose[src]

impl StructuralEq for CryptoKeyPurpose[src]

impl StructuralPartialEq for CryptoKeyPurpose[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]