Skip to main content

CertificateEncoding

Enum CertificateEncoding 

Source
pub enum CertificateEncoding {
    PemUrl,
    DerBase64,
    Xfcc,
}
Expand description

How the certificate header is written.

Variants§

§

PemUrl

URL-encoded PEM, the leaf first and any chain after it: nginx $ssl_client_escaped_cert, AWS ALB X-Amzn-Mtls-Clientcert.

§

DerBase64

Base64 DER, certificates separated by commas: Traefik X-Forwarded-Tls-Client-Cert.

§

Xfcc

Envoy x-forwarded-client-cert: the Cert of the last element, which the proxy next to this service wrote, as URL-encoded PEM.

Trait Implementations§

Source§

impl Clone for CertificateEncoding

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for CertificateEncoding

Source§

impl Debug for CertificateEncoding

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CertificateEncoding

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for CertificateEncoding

Source§

impl Leaf for CertificateEncoding

Source§

const TYPE: &'static str = "CertificateEncoding"

The name a Datum shows: bool, u16, Duration, or the type’s own.
Source§

fn labels() -> &'static [(&'static str, &'static str)]

A label for each fixed text the type names, as (text, label): what a form shows beside the text. Only the texts that have a label are listed.
Source§

fn to_text(&self) -> String

The text of the value.
Source§

fn from_text(__text: &str) -> Result<Self, LeafError>

The value a text stands for. Read more
Source§

fn choices() -> Option<&'static [&'static str]>

The texts a unit-only enum accepts.
§

const ORDERED: bool = false

The type declares an order (order answers Some).
§

fn same(a: &Self, b: &Self) -> bool

Whether two values are the same setting. Settings are compared after both texts are parsed into this type, never as the raw input: by default the canonical texts of the two values are equal, which the round-trip contract makes the type’s own equality. A type whose equal values can write different texts (-0.0 and 0.0) overrides it.
§

fn order(_a: &Self, _b: &Self) -> Option<Ordering>

The order of two values, where the type has one.
Source§

impl PartialEq for CertificateEncoding

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for CertificateEncoding

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> Describe for T
where T: Leaf,

§

const LEAF: bool = true

The type is one text: a [Leaf], or an untagged enum whose arms all are. An untagged enum counts the arms that are not, and holds at most one.
§

type Fill = LeafSlot<T>

The partly filled state of this type: what Partial holds.
§

fn description() -> Description

What this type is.
§

const OPTIONAL: bool = false

The type is Option<_>: leaving a field of it out is a value of its own, so it is never required.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Inspect for T
where T: Leaf,

§

fn at(&self, at: &[Segment]) -> Option<Datum>

The leaf at at, or None.
§

fn entries(&self, _at: &[Segment]) -> Option<Entries>

The structure at at, or None.
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.