Enum google_api_proto::google::cloud::security::privateca::v1::certificate_extension_constraints::KnownCertificateExtension
source · #[repr(i32)]pub enum KnownCertificateExtension {
Unspecified = 0,
BaseKeyUsage = 1,
ExtendedKeyUsage = 2,
CaOptions = 3,
PolicyIds = 4,
AiaOcspServers = 5,
NameConstraints = 6,
}
Expand description
Describes well-known X.509 extensions that can appear in a [Certificate][google.cloud.security.privateca.v1.Certificate], not including the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension.
Variants§
Unspecified = 0
Not specified.
BaseKeyUsage = 1
Refers to a certificate’s Key Usage extension, as described in RFC 5280 section 4.2.1.3. This corresponds to the [KeyUsage.base_key_usage][google.cloud.security.privateca.v1.KeyUsage.base_key_usage] field.
ExtendedKeyUsage = 2
Refers to a certificate’s Extended Key Usage extension, as described in RFC 5280 section 4.2.1.12. This corresponds to the [KeyUsage.extended_key_usage][google.cloud.security.privateca.v1.KeyUsage.extended_key_usage] message.
CaOptions = 3
Refers to a certificate’s Basic Constraints extension, as described in RFC 5280 section 4.2.1.9. This corresponds to the [X509Parameters.ca_options][google.cloud.security.privateca.v1.X509Parameters.ca_options] field.
PolicyIds = 4
Refers to a certificate’s Policy object identifiers, as described in RFC 5280 section 4.2.1.4. This corresponds to the [X509Parameters.policy_ids][google.cloud.security.privateca.v1.X509Parameters.policy_ids] field.
AiaOcspServers = 5
Refers to OCSP servers in a certificate’s Authority Information Access extension, as described in RFC 5280 section 4.2.2.1, This corresponds to the [X509Parameters.aia_ocsp_servers][google.cloud.security.privateca.v1.X509Parameters.aia_ocsp_servers] field.
NameConstraints = 6
Refers to Name Constraints extension as described in RFC 5280 section 4.2.1.10
Implementations§
source§impl KnownCertificateExtension
impl KnownCertificateExtension
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of KnownCertificateExtension
.
sourcepub fn from_i32(value: i32) -> Option<KnownCertificateExtension>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<KnownCertificateExtension>
Converts an i32
to a KnownCertificateExtension
, or None
if value
is not a valid variant.
source§impl KnownCertificateExtension
impl KnownCertificateExtension
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 KnownCertificateExtension
impl Clone for KnownCertificateExtension
source§fn clone(&self) -> KnownCertificateExtension
fn clone(&self) -> KnownCertificateExtension
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KnownCertificateExtension
impl Debug for KnownCertificateExtension
source§impl Default for KnownCertificateExtension
impl Default for KnownCertificateExtension
source§fn default() -> KnownCertificateExtension
fn default() -> KnownCertificateExtension
source§impl From<KnownCertificateExtension> for i32
impl From<KnownCertificateExtension> for i32
source§fn from(value: KnownCertificateExtension) -> i32
fn from(value: KnownCertificateExtension) -> i32
source§impl Hash for KnownCertificateExtension
impl Hash for KnownCertificateExtension
source§impl Ord for KnownCertificateExtension
impl Ord for KnownCertificateExtension
source§fn cmp(&self, other: &KnownCertificateExtension) -> Ordering
fn cmp(&self, other: &KnownCertificateExtension) -> 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 KnownCertificateExtension
impl PartialEq for KnownCertificateExtension
source§fn eq(&self, other: &KnownCertificateExtension) -> bool
fn eq(&self, other: &KnownCertificateExtension) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for KnownCertificateExtension
impl PartialOrd for KnownCertificateExtension
source§fn partial_cmp(&self, other: &KnownCertificateExtension) -> Option<Ordering>
fn partial_cmp(&self, other: &KnownCertificateExtension) -> 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 KnownCertificateExtension
impl TryFrom<i32> for KnownCertificateExtension
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<KnownCertificateExtension, UnknownEnumValue>
fn try_from(value: i32) -> Result<KnownCertificateExtension, UnknownEnumValue>
impl Copy for KnownCertificateExtension
impl Eq for KnownCertificateExtension
impl StructuralPartialEq for KnownCertificateExtension
Auto Trait Implementations§
impl Freeze for KnownCertificateExtension
impl RefUnwindSafe for KnownCertificateExtension
impl Send for KnownCertificateExtension
impl Sync for KnownCertificateExtension
impl Unpin for KnownCertificateExtension
impl UnwindSafe for KnownCertificateExtension
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