pub struct ConfigLayer {
pub tier: Tier,
pub machine_local: bool,
pub origin: String,
pub value: Value,
}Expand description
One layer of configuration, already parsed.
Fields§
§tier: Tier§machine_local: boolWhether this is the per-machine overlay for its tier rather than the shared settings.
The merge treats the two identically but for one rule: the
permissions rule lists in an overlay are marked
LoadedRule::machine_local, apart from the shared
rules, because a rule nobody else on the team can see is not the same
kind of statement as one committed alongside the code.
origin: StringWhere this layer came from, as something a person can act on — a path, a URL, a config-map key. Only ever used in diagnostics.
value: ValueTrait Implementations§
Source§impl Clone for ConfigLayer
impl Clone for ConfigLayer
Auto Trait Implementations§
impl Forget for ConfigLayer
impl Freeze for ConfigLayer
impl Move for ConfigLayer
impl RefUnwindSafe for ConfigLayer
impl Send for ConfigLayer
impl Sync for ConfigLayer
impl Unpin for ConfigLayer
impl UnsafeUnpin for ConfigLayer
impl UnwindSafe for ConfigLayer
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