pub struct TomlConfig {
pub webhook: WebhookSection,
pub filter: FilterSection,
pub monitor: MonitorSection,
pub retry: RetrySection,
}Expand description
Root configuration structure from TOML file.
All fields are optional to allow partial configuration that can be merged with CLI arguments.
Fields§
§webhook: WebhookSectionWebhook configuration section
filter: FilterSectionNetwork adapter filter configuration
monitor: MonitorSectionMonitoring configuration
retry: RetrySectionRetry policy configuration
Implementations§
Source§impl TomlConfig
impl TomlConfig
Trait Implementations§
Source§impl Debug for TomlConfig
impl Debug for TomlConfig
Source§impl Default for TomlConfig
impl Default for TomlConfig
Source§fn default() -> TomlConfig
fn default() -> TomlConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TomlConfig
impl<'de> Deserialize<'de> for TomlConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TomlConfig
impl RefUnwindSafe for TomlConfig
impl Send for TomlConfig
impl Sync for TomlConfig
impl Unpin for TomlConfig
impl UnwindSafe for TomlConfig
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