Struct maelstrom_util::config::CommandBuilder
source · pub struct CommandBuilder { /* private fields */ }
Implementations§
source§impl CommandBuilder
impl CommandBuilder
pub fn new( command: Command, base_directories: &BaseDirectories, env_var_prefix: &'static str ) -> Self
pub fn value( self, field: &'static str, short: Option<char>, value_name: &'static str, default: Option<String>, help: &'static str ) -> Self
pub fn flag_value( self, field: &'static str, short: Option<char>, help: &'static str ) -> Self
pub fn next_help_heading(self, heading: &'static str) -> Self
pub fn build(self) -> Command
Auto Trait Implementations§
impl Freeze for CommandBuilder
impl !RefUnwindSafe for CommandBuilder
impl Send for CommandBuilder
impl Sync for CommandBuilder
impl Unpin for CommandBuilder
impl !UnwindSafe for CommandBuilder
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