pub struct EnvSourceChain<A, B> {
pub primary: A,
pub fallback: B,
}Expand description
链式环境变量源:优先查询 primary,没有再查 fallback。 常用于“临时变量+系统变量”的多层环境方案。
Fields§
§primary: A主查找源(优先)
fallback: B备选查找源(兜底)
Trait Implementations§
Auto Trait Implementations§
impl<A, B> Freeze for EnvSourceChain<A, B>
impl<A, B> RefUnwindSafe for EnvSourceChain<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for EnvSourceChain<A, B>
impl<A, B> Sync for EnvSourceChain<A, B>
impl<A, B> Unpin for EnvSourceChain<A, B>
impl<A, B> UnwindSafe for EnvSourceChain<A, B>where
A: UnwindSafe,
B: UnwindSafe,
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