Skip to main content

ConfigSource

Trait ConfigSource 

Source
pub trait ConfigSource:
    Debug
    + Send
    + Sync
    + 'static {
    // Required method
    fn collect(&self) -> AppResult<Config>;
}
Expand description

Adapter contract for configuration sources.

Implement this trait in opt-in backend crates such as a future Vault, Parameter Store, or remote-config adapter. rskit-config owns ordering, decoding, defaults, and validation; adapters only return collected values.

Required Methods§

Source

fn collect(&self) -> AppResult<Config>

Collect this source into a config source object.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§