Struct quilkin::Config [−][src]
#[non_exhaustive]pub struct Config { pub version: Version, pub proxy: Proxy, pub admin: Admin, pub source: Source, }
Expand description
Config is the configuration of a proxy
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.version: Versionproxy: Proxyadmin: Adminsource: SourceImplementations
Attempts to locate and parse a Config located at either path, the
$QUILKIN_CONFIG environment variable if set, the current directory,
or the /etc/quilkin directory (on unix platforms only). Returns an
error if the found configuration is invalid, or if no configuration
could be found at any location.
Attempts to deserialize input as a YAML object representing Self.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Config
impl UnwindSafe for Config
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Wrap the input message T in a tonic::Request
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