pub struct ConsulGatewayTlsConfigBuilder { /* private fields */ }
Expand description
Builder for ConsulGatewayTlsConfig
.
Implementations§
Source§impl ConsulGatewayTlsConfigBuilder
impl ConsulGatewayTlsConfigBuilder
Sourcepub fn tls_max_version(&mut self, value: Option<String>) -> &mut Self
pub fn tls_max_version(&mut self, value: Option<String>) -> &mut Self
TLSMaxVersion specifies the maxmimum TLS version supported for gateway listeners.
Sourcepub fn cipher_suites(&mut self, value: Option<Vec<String>>) -> &mut Self
pub fn cipher_suites(&mut self, value: Option<Vec<String>>) -> &mut Self
CipherSuites specifies a list of cipher suites that gateway listeners support when negotiating connections using TLS 1.2 or older.
Sourcepub fn sds(&mut self, value: Option<ConsulGatewayTlssdsConfig>) -> &mut Self
pub fn sds(&mut self, value: Option<ConsulGatewayTlssdsConfig>) -> &mut Self
SDS specifies parameters that configure the listener to load TLS certificates from an external Secrets Discovery Service (SDS).
Sourcepub fn enabled(&mut self, value: bool) -> &mut Self
pub fn enabled(&mut self, value: bool) -> &mut Self
Enabled indicates whether TLS is enabled for the configuration entry
Sourcepub fn tls_min_version(&mut self, value: Option<String>) -> &mut Self
pub fn tls_min_version(&mut self, value: Option<String>) -> &mut Self
TLSMinVersion specifies the minimum TLS version supported for gateway listeners.
Sourcepub fn build(
&self,
) -> Result<ConsulGatewayTlsConfig, ConsulGatewayTlsConfigBuilderError>
pub fn build( &self, ) -> Result<ConsulGatewayTlsConfig, ConsulGatewayTlsConfigBuilderError>
Trait Implementations§
Source§impl Clone for ConsulGatewayTlsConfigBuilder
impl Clone for ConsulGatewayTlsConfigBuilder
Source§fn clone(&self) -> ConsulGatewayTlsConfigBuilder
fn clone(&self) -> ConsulGatewayTlsConfigBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ConsulGatewayTlsConfigBuilder
impl RefUnwindSafe for ConsulGatewayTlsConfigBuilder
impl Send for ConsulGatewayTlsConfigBuilder
impl Sync for ConsulGatewayTlsConfigBuilder
impl Unpin for ConsulGatewayTlsConfigBuilder
impl UnwindSafe for ConsulGatewayTlsConfigBuilder
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