Enum gapi_grpc::google::cloud::security::privateca::v1::public_key::KeyFormat[][src]

#[repr(i32)]pub enum KeyFormat {
    Unspecified,
    Pem,
}

Types of public keys formats that are supported. Currently, only PEM format is supported.

Variants

Unspecified

Default unspecified value.

Pem

The key is PEM-encoded as defined in RFC 7468. It can be any of the following: a PEM-encoded PKCS#1/RFC 3447 RSAPublicKey structure, an RFC 5280 SubjectPublicKeyInfo or a PEM-encoded X.509 certificate signing request (CSR). If a SubjectPublicKeyInfo is specified, it can contain a A PEM-encoded PKCS#1/RFC 3447 RSAPublicKey or a NIST P-256/secp256r1/prime256v1 or P-384 key. If a CSR is specified, it will used solely for the purpose of extracting the public key. When generated by the service, it will always be an RFC 5280 SubjectPublicKeyInfo structure containing an algorithm identifier and a key.

Implementations

impl KeyFormat[src]

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

Returns true if value is a variant of KeyFormat.

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

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

Trait Implementations

impl Clone for KeyFormat[src]

impl Copy for KeyFormat[src]

impl Debug for KeyFormat[src]

impl Default for KeyFormat[src]

impl Eq for KeyFormat[src]

impl From<KeyFormat> for i32[src]

impl Hash for KeyFormat[src]

impl Ord for KeyFormat[src]

impl PartialEq<KeyFormat> for KeyFormat[src]

impl PartialOrd<KeyFormat> for KeyFormat[src]

impl StructuralEq for KeyFormat[src]

impl StructuralPartialEq for KeyFormat[src]

Auto Trait Implementations

impl RefUnwindSafe for KeyFormat

impl Send for KeyFormat

impl Sync for KeyFormat

impl Unpin for KeyFormat

impl UnwindSafe for KeyFormat

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> 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>, 
[src]

impl<T> WithSubscriber for T[src]