Struct miau::configuration::ConfigurationInfo[][src]

pub struct ConfigurationInfo { /* fields omitted */ }

Holds information about configuration.

Each configuration source and format can populate it with arbitrary data. For instance, file source may store path to a file and its format.

Implementations

impl ConfigurationInfo[src]

pub fn new<T: Into<String>>(source: T, format: T) -> Self[src]

Creates new instance of ConfigurationInfo.

pub fn format(&self) -> &str[src]

Returns information about configuration format.

Usually it will be data format information like json, yaml. However, arbitrary data can be stored as a configuration format, thus no assumption about cotents of format string should be made.

pub fn source(&self) -> &str[src]

Returns information about configuration source.

Depending on a source this information can contain file path, url or simple information like 'environment'.

Trait Implementations

impl Clone for ConfigurationInfo[src]

impl Debug for ConfigurationInfo[src]

impl Default for ConfigurationInfo[src]

impl Display for ConfigurationInfo[src]

impl Eq for ConfigurationInfo[src]

impl PartialEq<ConfigurationInfo> for ConfigurationInfo[src]

impl StructuralEq for ConfigurationInfo[src]

impl StructuralPartialEq for ConfigurationInfo[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?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.