pub struct DogsConfig {
pub dog: BTreeMap<String, Table>,
}Expand description
Every [<dog>] table in dogs.toml
Debug is redacted (IR-41): a dog section routinely carries a webhook
URL with a bearer token in it, and this type exists to be logged near
the boot path.
Fields§
§dog: BTreeMap<String, Table>Raw [<name>] tables keyed by dog name
Implementations§
Source§impl DogsConfig
impl DogsConfig
Sourcepub fn load(source: Option<&str>) -> Result<Self, DogsConfigError>
pub fn load(source: Option<&str>) -> Result<Self, DogsConfigError>
Parses dogs.toml, or answers empty when there is no file
§Errors
DogsConfigError::Tomlwhensourceis not valid TOML.
Trait Implementations§
Source§impl Clone for DogsConfig
impl Clone for DogsConfig
Source§fn clone(&self) -> DogsConfig
fn clone(&self) -> DogsConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DogsConfig
impl Debug for DogsConfig
Source§impl Default for DogsConfig
impl Default for DogsConfig
Source§fn default() -> DogsConfig
fn default() -> DogsConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for DogsConfig
impl PartialEq for DogsConfig
impl StructuralPartialEq for DogsConfig
Auto Trait Implementations§
impl Freeze for DogsConfig
impl RefUnwindSafe for DogsConfig
impl Send for DogsConfig
impl Sync for DogsConfig
impl Unpin for DogsConfig
impl UnsafeUnpin for DogsConfig
impl UnwindSafe for DogsConfig
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