pub struct Builder<T>(/* private fields */);Expand description
A builder for ServicesConfig
Implementations§
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn insert_services(
self,
key: impl Into<String>,
value: ServiceConfig,
) -> Self
pub fn insert_services( self, key: impl Into<String>, value: ServiceConfig, ) -> Self
Adds an entry to the services field.
Sourcepub fn services(
self,
services: impl IntoIterator<Item = (impl Into<String>, ServiceConfig)>,
) -> Self
pub fn services( self, services: impl IntoIterator<Item = (impl Into<String>, ServiceConfig)>, ) -> Self
Sets the services field.
Sourcepub fn extend_services(
self,
services: impl IntoIterator<Item = (impl Into<String>, ServiceConfig)>,
) -> Self
pub fn extend_services( self, services: impl IntoIterator<Item = (impl Into<String>, ServiceConfig)>, ) -> Self
Adds entries to the services field.
Sourcepub fn security(self, security: impl Into<Option<SecurityConfig>>) -> Self
pub fn security(self, security: impl Into<Option<SecurityConfig>>) -> Self
Sets the security field.
Sourcepub fn proxy(self, proxy: impl Into<Option<ProxyConfig>>) -> Self
pub fn proxy(self, proxy: impl Into<Option<ProxyConfig>>) -> Self
Sets the proxy field.
Sourcepub fn connect_timeout(
self,
connect_timeout: impl Into<Option<Duration>>,
) -> Self
pub fn connect_timeout( self, connect_timeout: impl Into<Option<Duration>>, ) -> Self
Sets the connect_timeout field.
Sourcepub fn read_timeout(self, read_timeout: impl Into<Option<Duration>>) -> Self
pub fn read_timeout(self, read_timeout: impl Into<Option<Duration>>) -> Self
Sets the read_timeout field.
Sourcepub fn write_timeout(self, write_timeout: impl Into<Option<Duration>>) -> Self
pub fn write_timeout(self, write_timeout: impl Into<Option<Duration>>) -> Self
Sets the write_timeout field.
Sourcepub fn backoff_slot_size(
self,
backoff_slot_size: impl Into<Option<Duration>>,
) -> Self
pub fn backoff_slot_size( self, backoff_slot_size: impl Into<Option<Duration>>, ) -> Self
Sets the backoff_slot_size field.
Sourcepub fn build(self) -> ServicesConfig
pub fn build(self) -> ServicesConfig
Consumes the builder, returning a ServicesConfig.
Trait Implementations§
Source§impl From<ServicesConfig> for Builder<Complete>
impl From<ServicesConfig> for Builder<Complete>
Source§fn from(v: ServicesConfig) -> Self
fn from(v: ServicesConfig) -> Self
Converts to this type from the input type.