pub trait ProxyWordConfigSetters: Holds<ProxyWordConfig> + Sized {
// Required methods
fn trusted(self, value: impl Into<Vec<String>>) -> Self;
fn user_header(self, value: impl Into<Option<String>>) -> Self;
fn certificate_header(self, value: impl Into<Option<String>>) -> Self;
fn certificate_encoding(self, value: impl Into<CertificateEncoding>) -> Self;
fn subject_header(self, value: impl Into<Option<String>>) -> Self;
fn account(self, value: impl Into<Vec<Pick>>) -> Self;
fn max_certificate_bytes(self, value: impl Into<Limit>) -> Self;
}Expand description
The typed setters of ProxyWordConfig, for any builder that holds its settings.
Required Methods§
Sourcefn trusted(self, value: impl Into<Vec<String>>) -> Self
fn trusted(self, value: impl Into<Vec<String>>) -> Self
Trusted addresses and CIDR networks; an empty list trusts nobody.
Sourcefn user_header(self, value: impl Into<Option<String>>) -> Self
fn user_header(self, value: impl Into<Option<String>>) -> Self
Header written by the proxy with an account name.
Sourcefn certificate_header(self, value: impl Into<Option<String>>) -> Self
fn certificate_header(self, value: impl Into<Option<String>>) -> Self
Header holding the client certificate the proxy verified.
Sourcefn certificate_encoding(self, value: impl Into<CertificateEncoding>) -> Self
fn certificate_encoding(self, value: impl Into<CertificateEncoding>) -> Self
How certificate_header is written: pem-url (nginx, AWS ALB), der-base64
(Traefik) or xfcc (Envoy).
Sourcefn subject_header(self, value: impl Into<Option<String>>) -> Self
fn subject_header(self, value: impl Into<Option<String>>) -> Self
Header holding a client certificate’s subject, such as CN=Doe,O=Ops.
Sourcefn account(self, value: impl Into<Vec<Pick>>) -> Self
fn account(self, value: impl Into<Vec<Pick>>) -> Self
How a certificate or subject names the account: picks tried in order over its fields
(subject.cn, san.email, san.upn, …). Default none: a forwarded certificate is
answered as its claims, and a subject header names its CN, by name.
Sourcefn max_certificate_bytes(self, value: impl Into<Limit>) -> Self
fn max_certificate_bytes(self, value: impl Into<Limit>) -> Self
The most bytes certificate_header may hold; none for no bound.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".