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
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]
self,
env: &impl Environment,
customize: Self::Customizer
) -> Result<Self::Product, PropertyError>
Build with specified prefix.
Provided methods
fn build(
namespace: &str,
env: &impl Environment,
customize: Self::Customizer
) -> Result<Self::Product, PropertyError>
[src]
namespace: &str,
env: &impl Environment,
customize: Self::Customizer
) -> Result<Self::Product, PropertyError>
Build product.
fn list_keys(namespace: &str) -> Vec<(String, bool, Option<String>)>
[src]
List All Keys