pub struct CmdCtxNpnfParams<'ctx, CmdCtxTypesT>where
CmdCtxTypesT: CmdCtxTypes,{
pub output: OwnedOrMutRef<'ctx, CmdCtxTypesT::Output>,
pub interruptibility: Interruptibility<'static>,
pub workspace: OwnedOrRef<'ctx, Workspace>,
pub workspace_params: WorkspaceParamsOpt<<CmdCtxTypesT as CmdCtxTypes>::WorkspaceParamsKey>,
}Expand description
Context for a command that only works with workspace parameters – no profile / no flow.
path/to/repo/.peace/envman
|- 📝 workspace_params.yaml # ✅ can read or write `WorkspaceParams`
|
|- 🌏 .. # ❌ cannot read or write `Profile` information§Capabilities
This kind of command can:
- Read or write workspace parameters.
This kind of command cannot:
- Read or write profile parameters – see
CmdCtxSpnforCmdCtxMpnf. - Read or write flow parameters or state – see
CmdCtxSpsforCmdCtxMpsf.
Fields§
§output: OwnedOrMutRef<'ctx, CmdCtxTypesT::Output>Output endpoint to return values / errors, and write progress information to.
See OutputWrite.
interruptibility: Interruptibility<'static>The interrupt channel receiver if this CmdExecution is interruptible.
workspace: OwnedOrRef<'ctx, Workspace>Workspace that the peace tool runs in.
workspace_params: WorkspaceParamsOpt<<CmdCtxTypesT as CmdCtxTypes>::WorkspaceParamsKey>Workspace params.
Implementations§
Source§impl<'ctx, CmdCtxTypesT> CmdCtxNpnfParams<'ctx, CmdCtxTypesT>where
CmdCtxTypesT: CmdCtxTypes,
impl<'ctx, CmdCtxTypesT> CmdCtxNpnfParams<'ctx, CmdCtxTypesT>where
CmdCtxTypesT: CmdCtxTypes,
Sourcepub fn builder() -> CmdCtxNpnfParamsBuilder<'ctx, CmdCtxTypesT, ((), (), (), (WorkspaceParamsOpt<<CmdCtxTypesT as CmdCtxTypes>::WorkspaceParamsKey>,))>
pub fn builder() -> CmdCtxNpnfParamsBuilder<'ctx, CmdCtxTypesT, ((), (), (), (WorkspaceParamsOpt<<CmdCtxTypesT as CmdCtxTypes>::WorkspaceParamsKey>,))>
Create a builder for building CmdCtxNpnfParams.
On the builder, call .output(...), .interruptibility(...)(optional), .workspace(...) to set the values of the fields.
Finally, call .build_partial() to create the instance of CmdCtxNpnfParams.
Trait Implementations§
Auto Trait Implementations§
impl<'ctx, CmdCtxTypesT> Freeze for CmdCtxNpnfParams<'ctx, CmdCtxTypesT>
impl<'ctx, CmdCtxTypesT> !RefUnwindSafe for CmdCtxNpnfParams<'ctx, CmdCtxTypesT>
impl<'ctx, CmdCtxTypesT> Send for CmdCtxNpnfParams<'ctx, CmdCtxTypesT>
impl<'ctx, CmdCtxTypesT> Sync for CmdCtxNpnfParams<'ctx, CmdCtxTypesT>
impl<'ctx, CmdCtxTypesT> Unpin for CmdCtxNpnfParams<'ctx, CmdCtxTypesT>
impl<'ctx, CmdCtxTypesT> !UnwindSafe for CmdCtxNpnfParams<'ctx, CmdCtxTypesT>
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.