Trait salak_factory::Buildable[][src]

pub trait Buildable: Sized + FromEnvironment {
    type Product;
    type Customizer: Default;
    fn prefix() -> &'static str;
fn build_with_key(
        self,
        env: &impl Environment,
        customize: Self::Customizer
    ) -> Result<Self::Product, PropertyError>; fn build(
        namespace: &str,
        env: &impl Environment,
        customize: Self::Customizer
    ) -> Result<Self::Product, PropertyError> { ... }
fn list_keys(namespace: &str) -> Vec<(String, bool, Option<String>)> { ... } }

Buildable component from Environment.

Associated Types

type Product[src]

Target product.

type Customizer: Default[src]

Customize when building.

Loading content...

Required methods

fn prefix() -> &'static str[src]

Configuration prefix.

fn build_with_key(
    self,
    env: &impl Environment,
    customize: Self::Customizer
) -> Result<Self::Product, PropertyError>
[src]

Build with specified prefix.

Loading content...

Provided methods

fn build(
    namespace: &str,
    env: &impl Environment,
    customize: Self::Customizer
) -> Result<Self::Product, PropertyError>
[src]

Build product.

fn list_keys(namespace: &str) -> Vec<(String, bool, Option<String>)>[src]

List All Keys

Loading content...

Implementors

Loading content...