[][src]Struct dbcrossbarlib::config::Configuration

pub struct Configuration { /* fields omitted */ }

Our dbcrossbar.toml configuration file.

Implementations

impl Configuration[src]

pub fn try_default() -> Result<Self>[src]

Load our default configuration.

pub fn write(&self) -> Result<()>[src]

Write the configuration file to disk.

pub fn temporaries(&self) -> Result<Vec<String>>[src]

Return a list of places to store temporary data.

pub fn add_to_string_array(&mut self, key: &Key, value: &str) -> Result<()>[src]

Add a new value to an array of strings, if it's not already there.

pub fn remove_from_string_array(&mut self, key: &Key, value: &str) -> Result<()>[src]

Remove a value from an array of strings, if present. If more than one copy is present it will remove all.

Trait Implementations

impl Debug for Configuration[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,