pub struct CommandContextBuilder { /* private fields */ }Expand description
Builder for mounted-app execution context.
Implementations§
Source§impl CommandContextBuilder
impl CommandContextBuilder
pub fn cwd(self, value: impl Into<PathBuf>) -> Self
pub fn project_root(self, value: impl Into<PathBuf>) -> Self
pub fn config_dir(self, value: impl Into<PathBuf>) -> Self
pub fn output_format(self, value: OutputFormat) -> Self
pub fn pretty_mode(self, value: PrettyMode) -> Self
pub fn color_mode(self, value: ColorMode) -> Self
pub fn verbosity(self, value: LogLevel) -> Self
pub fn quiet(self, value: bool) -> Self
pub fn invocation_id(self, value: impl Into<String>) -> Self
pub fn build(self) -> CommandContext
Trait Implementations§
Source§impl Clone for CommandContextBuilder
impl Clone for CommandContextBuilder
Source§fn clone(&self) -> CommandContextBuilder
fn clone(&self) -> CommandContextBuilder
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 moreSource§impl Debug for CommandContextBuilder
impl Debug for CommandContextBuilder
impl Eq for CommandContextBuilder
Source§impl PartialEq for CommandContextBuilder
impl PartialEq for CommandContextBuilder
impl StructuralPartialEq for CommandContextBuilder
Auto Trait Implementations§
impl Freeze for CommandContextBuilder
impl RefUnwindSafe for CommandContextBuilder
impl Send for CommandContextBuilder
impl Sync for CommandContextBuilder
impl Unpin for CommandContextBuilder
impl UnsafeUnpin for CommandContextBuilder
impl UnwindSafe for CommandContextBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.