Struct conjure_runtime::config::ServicesConfig [−][src]
pub struct ServicesConfig { /* fields omitted */ }Expand description
Configuration for a collection of services.
This type can be constructed programmatically via the ServicesConfigBuilder API or deserialized from e.g. a
configuration file. Default values for various configuration options can be set at the top level in addition to
being specified per-service.
Examples
services:
auth-service:
uris:
- https://auth.my-network.com:1234/auth-service
cache-service:
uris:
- https://cache-1.my-network.com/cache-service
- https://cache-2.my-network.com/cache-service
request-timeout: 10s
security:
ca-file: var/security/ca.pemImplementations
Returns a new builder.
Returns the configuration for the specified service with top-level defaults applied.
Returns the security configuration.
Returns the proxy configuration.
Returns the connection timeout.
Returns the read timeout.
Returns the write timeout.
Returns the backoff slot size.
Trait Implementations
Returns the “default value” for a type. Read more
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ServicesConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ServicesConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for ServicesConfig
impl Send for ServicesConfig
impl Sync for ServicesConfig
impl Unpin for ServicesConfig
impl UnwindSafe for ServicesConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more