pub struct LinkIssueArgs {
pub link_act: LinkIssueActionValues,
pub project_key: Option<String>,
pub origin_issue_key: String,
pub destination_issue_key: Option<String>,
pub link_type: String,
pub changelog_file: Option<String>,
}Expand description
Available issues’ links command line arguments
- link_act: LinkIssueActionValues - Jira link issue command available actions
- project_key:
Option<String>- Jira Project key - origin_issue_key: String - Jira origin issue link key
- destination_issue_key:
Option<String>- Jira destination issue link key - link_type: String - Jira issue link type
- changelog_file:
Option<String>- Jira Project version changelog file
Fields§
§link_act: LinkIssueActionValuesJira link issue command available actions
project_key: Option<String>Jira Project key
origin_issue_key: StringJira origin issue link key
destination_issue_key: Option<String>Jira destination issue link key
link_type: StringJira issue link type
changelog_file: Option<String>Jira Project version changelog file
Trait Implementations§
Source§impl Args for LinkIssueArgs
impl Args for LinkIssueArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for LinkIssueArgs
impl Clone for LinkIssueArgs
Source§fn clone(&self) -> LinkIssueArgs
fn clone(&self) -> LinkIssueArgs
Returns a duplicate of the value. Read more
1.0.0 · 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 LinkIssueArgs
impl Debug for LinkIssueArgs
Source§impl<'de> Deserialize<'de> for LinkIssueArgs
impl<'de> Deserialize<'de> for LinkIssueArgs
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&LinkIssueArgs> for LinkIssueCmdParams
Implementation of From trait for LinkIssueCmdParams struct
to convert LinkIssueArgs struct to LinkIssueCmdParams struct
impl From<&LinkIssueArgs> for LinkIssueCmdParams
Implementation of From trait for LinkIssueCmdParams struct to convert LinkIssueArgs struct to LinkIssueCmdParams struct
Source§fn from(value: &LinkIssueArgs) -> Self
fn from(value: &LinkIssueArgs) -> Self
Converts LinkIssueArgs struct to LinkIssueCmdParams struct to create a new LinkIssueCmdParams instance
§Arguments
value- LinkIssueArgs struct
§Returns
LinkIssueArgs- Link issue command parameters
§Examples
use jirust_cli::runners::jira_cmd_runners::link_issue_cmd_runner::LinkIssueCmdParams;
use jirust_cli::args::commands::{LinkIssueArgs, LinkIssueActionValues};
use std::collections::HashMap;
use serde_json::Value;
let link_issue_args = LinkIssueArgs {
link_act: LinkIssueActionValues::Create,
project_key: Some("project_key".to_string()),
origin_issue_key: "origin_issue_key".to_string(),
destination_issue_key: Some("destination_issue_key".to_string()),
link_type: "link_type".to_string(),
changelog_file: None,
};
let params = LinkIssueCmdParams::from(&link_issue_args);
assert_eq!(params.project_key, Some("project_key".to_string()));
assert_eq!(params.origin_issue_key, "origin_issue_key".to_string());
assert_eq!(params.destination_issue_key, Some("destination_issue_key".to_string()));
assert_eq!(params.link_type, "link_type".to_string());
assert_eq!(params.changelog_file, None);
Source§impl FromArgMatches for LinkIssueArgs
impl FromArgMatches for LinkIssueArgs
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 LinkIssueArgs
impl RefUnwindSafe for LinkIssueArgs
impl Send for LinkIssueArgs
impl Sync for LinkIssueArgs
impl Unpin for LinkIssueArgs
impl UnwindSafe for LinkIssueArgs
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