[][src]Struct a_cli_tool::config6::Config

pub struct Config<V = String> {
    name: String,
    version: V,
    description: Option<String>,
    data: AppData,
}

Config Reference

Config file reference for a_cli_tool.

By default a_cli_tool looks for configuration in ./config.yaml, unless another path is specified with the -c/--config parameter.

Config details the structure of the configuration.

Fields

name: Stringversion: Vdescription: Option<String>data: AppData

Implementations

impl Config<String>[src]

pub fn parse(self) -> Result<Config<Version>>[src]

Trait Implementations

impl<'de, V> Deserialize<'de> for Config<V> where
    V: Deserialize<'de>, 
[src]

impl<V: JsonSchema> JsonSchema for Config<V>[src]

Auto Trait Implementations

impl<V> RefUnwindSafe for Config<V> where
    V: RefUnwindSafe

impl<V> Send for Config<V> where
    V: Send

impl<V> Sync for Config<V> where
    V: Sync

impl<V> Unpin for Config<V> where
    V: Unpin

impl<V> UnwindSafe for Config<V> where
    V: UnwindSafe

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.