Skip to main content

PickSetters

Trait PickSetters 

Source
pub trait PickSetters: Holds<Pick> + Sized {
    // Required methods
    fn field(self, value: impl Into<String>) -> Self;
    fn by(self, value: impl Into<String>) -> Self;
    fn domain(self, value: impl Into<Option<String>>) -> Self;
    fn ip_in_dns(self, value: bool) -> Self;
}
Expand description

The typed setters of Pick, for any builder that holds its settings.

Required Methods§

Source

fn field(self, value: impl Into<String>) -> Self

The credential’s field, such as san.email or subject.cn.

Source

fn by(self, value: impl Into<String>) -> Self

What the value is in the directory: the Lookup::by it is answered with, such as email or name.

Source

fn domain(self, value: impl Into<Option<String>>) -> Self

Keep only values ending @<domain> (any case) and take the part before it, as for a UPN or an email address naming an account of one domain.

Source

fn ip_in_dns(self, value: bool) -> Self

For san.ip: an IP address written as a DNS name counts as an IP name too. Some issuers put an address in a dNSName for clients that read no IP SANs. Default true.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<__B> PickSetters for __B
where __B: Holds<Pick>,