pub struct Context {
pub values: HashMap<String, Option<String>>,
}Expand description
Accumulated context passed through a chain of optional commands.
Each entry maps the command name to its string output (None if the command
produced no output). The context is serialized to JSON and passed as the
stdin input to the first non-optional command that terminates the chain.
Fields§
§values: HashMap<String, Option<String>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnsafeUnpin for Context
impl UnwindSafe for Context
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