Trait TopLevel

Source
pub trait TopLevel {
    type Builder: DeserializeOwned;

    const DEPRECATED_KEYS: &'static [&'static str] = _;
}
Expand description

Top-level configuration struct, made from a deserializable builder

One configuration consumer’s configuration settings.

Implementing this trait only for top-level configurations, which are to be parsed at the root level of a (TOML) config file taxonomy.

This trait exists to:

  • Mark the toplevel configuration structures as suitable for use with resolve
  • Provide the type of the Builder for use by Rust generic code

Provided Associated Constants§

Source

const DEPRECATED_KEYS: &'static [&'static str] = _

Deprecated config keys, as “.”-separates strings

Required Associated Types§

Source

type Builder: DeserializeOwned

The Builder which can be used to make a Self

Should satisfy &'_ Self::Builder: Builder<Built=Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

impl TopLevel for ArtiConfig

impl TopLevel for TorClientConfig

impl TopLevel for TorRelayConfig