pub struct TlsKeyConfigBuilder<S = Empty>where
S: State,{ /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S> TlsKeyConfigBuilder<S>where
S: State,
impl<S> TlsKeyConfigBuilder<S>where
S: State,
Sourcepub fn build(self) -> TlsKeyConfigwhere
S: IsComplete,
pub fn build(self) -> TlsKeyConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn subject(
self,
value: impl Into<String>,
) -> TlsKeyConfigBuilder<SetSubject<S>>where
<S as State>::Subject: IsUnset,
pub fn subject(
self,
value: impl Into<String>,
) -> TlsKeyConfigBuilder<SetSubject<S>>where
<S as State>::Subject: IsUnset,
Sourcepub fn maybe_subject(
self,
value: Option<impl Into<String>>,
) -> TlsKeyConfigBuilder<SetSubject<S>>where
<S as State>::Subject: IsUnset,
pub fn maybe_subject(
self,
value: Option<impl Into<String>>,
) -> TlsKeyConfigBuilder<SetSubject<S>>where
<S as State>::Subject: IsUnset,
Sourcepub fn alt_names(
self,
value: Vec<String>,
) -> TlsKeyConfigBuilder<SetAltNames<S>>where
<S as State>::AltNames: IsUnset,
pub fn alt_names(
self,
value: Vec<String>,
) -> TlsKeyConfigBuilder<SetAltNames<S>>where
<S as State>::AltNames: IsUnset,
Sourcepub fn maybe_alt_names(
self,
value: Option<Vec<String>>,
) -> TlsKeyConfigBuilder<SetAltNames<S>>where
<S as State>::AltNames: IsUnset,
pub fn maybe_alt_names(
self,
value: Option<Vec<String>>,
) -> TlsKeyConfigBuilder<SetAltNames<S>>where
<S as State>::AltNames: IsUnset,
Sourcepub fn usage_ra_tls(self, value: bool) -> TlsKeyConfigBuilder<SetUsageRaTls<S>>where
<S as State>::UsageRaTls: IsUnset,
pub fn usage_ra_tls(self, value: bool) -> TlsKeyConfigBuilder<SetUsageRaTls<S>>where
<S as State>::UsageRaTls: IsUnset,
Sourcepub fn maybe_usage_ra_tls(
self,
value: Option<bool>,
) -> TlsKeyConfigBuilder<SetUsageRaTls<S>>where
<S as State>::UsageRaTls: IsUnset,
pub fn maybe_usage_ra_tls(
self,
value: Option<bool>,
) -> TlsKeyConfigBuilder<SetUsageRaTls<S>>where
<S as State>::UsageRaTls: IsUnset,
Sourcepub fn usage_server_auth(
self,
value: bool,
) -> TlsKeyConfigBuilder<SetUsageServerAuth<S>>where
<S as State>::UsageServerAuth: IsUnset,
pub fn usage_server_auth(
self,
value: bool,
) -> TlsKeyConfigBuilder<SetUsageServerAuth<S>>where
<S as State>::UsageServerAuth: IsUnset,
Sourcepub fn maybe_usage_server_auth(
self,
value: Option<bool>,
) -> TlsKeyConfigBuilder<SetUsageServerAuth<S>>where
<S as State>::UsageServerAuth: IsUnset,
pub fn maybe_usage_server_auth(
self,
value: Option<bool>,
) -> TlsKeyConfigBuilder<SetUsageServerAuth<S>>where
<S as State>::UsageServerAuth: IsUnset,
Sourcepub fn usage_client_auth(
self,
value: bool,
) -> TlsKeyConfigBuilder<SetUsageClientAuth<S>>where
<S as State>::UsageClientAuth: IsUnset,
pub fn usage_client_auth(
self,
value: bool,
) -> TlsKeyConfigBuilder<SetUsageClientAuth<S>>where
<S as State>::UsageClientAuth: IsUnset,
Sourcepub fn maybe_usage_client_auth(
self,
value: Option<bool>,
) -> TlsKeyConfigBuilder<SetUsageClientAuth<S>>where
<S as State>::UsageClientAuth: IsUnset,
pub fn maybe_usage_client_auth(
self,
value: Option<bool>,
) -> TlsKeyConfigBuilder<SetUsageClientAuth<S>>where
<S as State>::UsageClientAuth: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for TlsKeyConfigBuilder<S>
impl<S> RefUnwindSafe for TlsKeyConfigBuilder<S>
impl<S> Send for TlsKeyConfigBuilder<S>
impl<S> Sync for TlsKeyConfigBuilder<S>
impl<S> Unpin for TlsKeyConfigBuilder<S>
impl<S> UnwindSafe for TlsKeyConfigBuilder<S>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more