Enum gapi_grpc::google::cloud::security::privateca::v1::SubjectRequestMode [−][src]
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
Not specified.
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.
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][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src][+]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
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][+]
U: From<T>,
impl<T> IntoRequest<T> for T
[src][+]
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,