Enum gapi_grpc::google::cloud::security::privateca::v1::SubjectRequestMode[][src]

#[repr(i32)]pub enum SubjectRequestMode {
    Unspecified,
    Default,
    ReflectedSpiffe,
}

Describes the way in which a [Certificate][google.cloud.security.privateca.v1.Certificate]’s [Subject][google.cloud.security.privateca.v1.Subject] and/or [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be resolved.

Variants

Unspecified

Not specified.

Default

The default mode used in most cases. Indicates that the certificate’s [Subject][google.cloud.security.privateca.v1.Subject] and/or [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] are specified in the certificate request. This mode requires the caller to have the privateca.certificates.create permission.

ReflectedSpiffe

A mode reserved for special cases. Indicates that the certificate should have one or more SPIFFE [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] set by the service based on the caller’s identity. This mode will ignore any explicitly specified [Subject][google.cloud.security.privateca.v1.Subject] and/or [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] in the certificate request. This mode requires the caller to have the privateca.certificates.createForSelf permission.

Implementations

impl SubjectRequestMode[src]

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

Returns true if value is a variant of SubjectRequestMode.

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

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

Trait Implementations

impl Clone for SubjectRequestMode[src]

impl Copy for SubjectRequestMode[src]

impl Debug for SubjectRequestMode[src]

impl Default for SubjectRequestMode[src]

impl Eq for SubjectRequestMode[src]

impl From<SubjectRequestMode> for i32[src]

impl Hash for SubjectRequestMode[src]

impl Ord for SubjectRequestMode[src]

impl PartialEq<SubjectRequestMode> for SubjectRequestMode[src]

impl PartialOrd<SubjectRequestMode> for SubjectRequestMode[src]

impl StructuralEq for SubjectRequestMode[src]

impl StructuralPartialEq for SubjectRequestMode[src]

Auto Trait Implementations

impl RefUnwindSafe for SubjectRequestMode

impl Send for SubjectRequestMode

impl Sync for SubjectRequestMode

impl Unpin for SubjectRequestMode

impl UnwindSafe for SubjectRequestMode

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]