pub struct InMemoryLayers(pub Vec<ConfigLayer>);Expand description
Layers the host already has in hand.
This is what a deployment that keeps configuration somewhere other than a disk actually uses: fetch from the config service, the ConfigMap or the database, and hand the JSON over. It is also the whole of a test that wants a settings tree without a temporary directory.
Tuple Fields§
§0: Vec<ConfigLayer>Implementations§
Trait Implementations§
Source§impl ConfigSource for InMemoryLayers
impl ConfigSource for InMemoryLayers
Source§fn layers(&self) -> Vec<ConfigLayer>
fn layers(&self) -> Vec<ConfigLayer>
Every layer this source has, lowest priority first.
Auto Trait Implementations§
impl Forget for InMemoryLayers
impl Freeze for InMemoryLayers
impl Move for InMemoryLayers
impl RefUnwindSafe for InMemoryLayers
impl Send for InMemoryLayers
impl Sync for InMemoryLayers
impl Unpin for InMemoryLayers
impl UnsafeUnpin for InMemoryLayers
impl UnwindSafe for InMemoryLayers
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more