pub struct Args {
pub command: CommandType,
pub project_name: Option<String>,
pub template_type: Option<TemplateType>,
pub model_sub_type: Option<ModelSubType>,
pub component_name: Option<String>,
}Expand description
Parsed command line arguments
hyperlane-cli ships both a library and a hyperlane binary; the binary
is a separate crate that consumes this one, so the read path must stay
pub (§17.14 does not recall published API).
Fields§
§command: CommandTypeThe command to execute
project_name: Option<String>Project name for new command
template_type: Option<TemplateType>Template type for template command
model_sub_type: Option<ModelSubType>Model subtype for template command (only when template_type is Model)
component_name: Option<String>Component name for template command
Implementations§
Source§impl Args
impl Args
pub fn get_command(&self) -> &CommandType
pub fn get_mut_command(&mut self) -> &mut CommandType
pub fn set_command(&mut self, val: CommandType) -> &mut Self
pub fn get_project_name(&self) -> Option<String>
pub fn try_get_project_name(&self) -> Option<String>
pub fn get_mut_project_name(&mut self) -> &mut Option<String>
pub fn set_project_name(&mut self, val: Option<String>) -> &mut Self
pub fn get_template_type(&self) -> Option<TemplateType>
pub fn try_get_template_type(&self) -> Option<TemplateType>
pub fn get_mut_template_type(&mut self) -> &mut Option<TemplateType>
pub fn set_template_type(&mut self, val: Option<TemplateType>) -> &mut Self
pub fn get_model_sub_type(&self) -> Option<ModelSubType>
pub fn try_get_model_sub_type(&self) -> Option<ModelSubType>
pub fn get_mut_model_sub_type(&mut self) -> &mut Option<ModelSubType>
pub fn set_model_sub_type(&mut self, val: Option<ModelSubType>) -> &mut Self
pub fn get_component_name(&self) -> Option<String>
pub fn try_get_component_name(&self) -> Option<String>
pub fn get_mut_component_name(&mut self) -> &mut Option<String>
pub fn set_component_name(&mut self, val: Option<String>) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnsafeUnpin for Args
impl UnwindSafe for Args
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