pub struct ResolveCtx<'a> {
pub args: &'a BTreeMap<String, String>,
pub defaults: &'a BTreeMap<String, String>,
pub env: &'a BTreeMap<String, String>,
pub config_vars: &'a BTreeMap<String, String>,
pub run_id: &'a str,
pub world: &'a World,
pub mode: ResolveMode,
}Expand description
Everything a resolution pass may read. All values are injected — resolution itself is pure (core purity).
Fields§
§args: &'a BTreeMap<String, String>Step arguments (captures + data table + with:), highest precedence.
defaults: &'a BTreeMap<String, String>Macro defaults:.
env: &'a BTreeMap<String, String>Injected environment snapshot.
config_vars: &'a BTreeMap<String, String>Injected proef.toml config scope (${url:key}, ${vars:key}), keyed
"<namespace>:<key>" — the CLI deep-merges the active [env.<name>] over
the base tables before injecting, so the core reads no file itself.
run_id: &'a strInjected run identifier (${run:id}).
world: &'a WorldWorld, for ${global:key} reads at lower time.
mode: ResolveModeStrict (execution) or dry-run behavior.
Trait Implementations§
Source§impl<'a> Clone for ResolveCtx<'a>
impl<'a> Clone for ResolveCtx<'a>
Source§fn clone(&self) -> ResolveCtx<'a>
fn clone(&self) -> ResolveCtx<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for ResolveCtx<'a>
Auto Trait Implementations§
impl<'a> Freeze for ResolveCtx<'a>
impl<'a> RefUnwindSafe for ResolveCtx<'a>
impl<'a> Send for ResolveCtx<'a>
impl<'a> Sync for ResolveCtx<'a>
impl<'a> Unpin for ResolveCtx<'a>
impl<'a> UnsafeUnpin for ResolveCtx<'a>
impl<'a> UnwindSafe for ResolveCtx<'a>
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