Struct ircservserv::config::BotConfig[][src]

pub struct BotConfig {
    pub channel_config: String,
    pub owners: Vec<String>,
    pub trusted: Vec<String>,
    pub irc: Config,
    // some fields omitted
}
Expand description

IRC Bot configuration: config.toml

Fields

channel_config: String

Path to repository with channel configuration

owners: Vec<String>

List of accounts who are owners

trusted: Vec<String>

List of accounts who are trusted

irc: Config

Configuration for the irc crate

Implementations

Load config from a toml file on disk

Trait Implementations

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.