pull/2787/head
Mike Wyatt 4 weeks ago
parent e6eb455f24
commit 0fbe8403d6

@ -19,7 +19,7 @@ use std::collections::HashMap;
mod macros; mod macros;
/// The resolution of a argument match. /// The resolution of a argument match.
#[derive(Default, Debug, Serialize)] #[derive(Default, Debug, Serialize, Clone)]
#[non_exhaustive] #[non_exhaustive]
pub struct ArgData { pub struct ArgData {
/// - [`Value::Bool`] if it's a flag, /// - [`Value::Bool`] if it's a flag,
@ -33,7 +33,7 @@ pub struct ArgData {
} }
/// The matched subcommand. /// The matched subcommand.
#[derive(Default, Debug, Serialize)] #[derive(Default, Debug, Serialize, Clone)]
#[non_exhaustive] #[non_exhaustive]
pub struct SubcommandMatches { pub struct SubcommandMatches {
/// The subcommand name. /// The subcommand name.
@ -43,7 +43,7 @@ pub struct SubcommandMatches {
} }
/// The argument matches of a command. /// The argument matches of a command.
#[derive(Default, Debug, Serialize)] #[derive(Default, Debug, Serialize, Clone)]
#[non_exhaustive] #[non_exhaustive]
pub struct Matches { pub struct Matches {
/// Data structure mapping each found arg with its resolution. /// Data structure mapping each found arg with its resolution.

Loading…
Cancel
Save