#[non_exhaustive]pub enum CertType {
X509DvServer,
X509OvClient,
}Expand description
Certificate type for status token cert entries.
Constrains the cert_type field to known values, preventing typos or
attacker-supplied garbage from bypassing cert-type-based verification logic.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
X509DvServer
X.509 Domain-Validated server certificate.
X509OvClient
X.509 Organization-Validated client certificate (mTLS identity).
Trait Implementations§
impl Copy for CertType
Source§impl<'de> Deserialize<'de> for CertType
impl<'de> Deserialize<'de> for CertType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CertType
impl StructuralPartialEq for CertType
Auto Trait Implementations§
impl Freeze for CertType
impl RefUnwindSafe for CertType
impl Send for CertType
impl Sync for CertType
impl Unpin for CertType
impl UnsafeUnpin for CertType
impl UnwindSafe for CertType
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
Mutably borrows from an owned value. Read more