Struct jirust_cli::args::commands::ProjectArgs
source · pub struct ProjectArgs {
pub project_act: ProjectActionValues,
pub project_key: Option<String>,
pub project_issue_type: Option<String>,
pub pagination: PaginationArgs,
}Expand description
Available project command line arguments version_act: ProjectActionValues GetIssueTypes, GetIssueTypeFields, List
Fields§
§project_act: ProjectActionValues§project_key: Option<String>§project_issue_type: Option<String>§pagination: PaginationArgsTrait Implementations§
source§impl Args for ProjectArgs
impl Args for ProjectArgs
source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§impl Debug for ProjectArgs
impl Debug for ProjectArgs
source§impl From<&ProjectArgs> for ProjectCmdParams
impl From<&ProjectArgs> for ProjectCmdParams
Implementation of the From trait for the ProjectCmdParams struct to convert from ProjectArgs to ProjectCmdParams.
source§fn from(value: &ProjectArgs) -> Self
fn from(value: &ProjectArgs) -> Self
Converts from ProjectArgs to ProjectCmdParams.
§Arguments
value- A ProjectArgs struct.
§Returns
- A ProjectCmdParams struct instance.
§Examples
use jirust_cli::runners::jira_cmd_runners::project_cmd_runner::ProjectCmdParams;
use jirust_cli::args::commands::{ProjectArgs, ProjectActionValues, PaginationArgs};
let project_args = ProjectArgs {
project_act: ProjectActionValues::List,
project_key: Some("project_key".to_string()),
project_issue_type: Some("project_issue_type".to_string()),
pagination: PaginationArgs { page_size: Some(10), page_offset: None },
};
let params = ProjectCmdParams::from(&project_args);
assert_eq!(params.project_key, Some("project_key".to_string()));
assert_eq!(params.project_issue_type, Some("project_issue_type".to_string()));
assert_eq!(params.projects_page_size, Some(10));
assert_eq!(params.projects_page_offset, Some(0));source§impl FromArgMatches for ProjectArgs
impl FromArgMatches for ProjectArgs
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for ProjectArgs
impl RefUnwindSafe for ProjectArgs
impl Send for ProjectArgs
impl Sync for ProjectArgs
impl Unpin for ProjectArgs
impl UnwindSafe for ProjectArgs
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