reactive_graph_tooling/tooling/instances/certificates/
args.rs

1use clap::Parser;
2
3#[derive(Parser, Debug)]
4pub struct GenerateCertificateArgs {
5    /// Country name.
6    pub country_name: Option<String>,
7
8    /// Organization name.
9    pub organization_name: Option<String>,
10
11    /// Common name.
12    pub common_name: Option<String>,
13    // #[command(subcommand)]
14    // pub commands: GenerateCertificateCommands,
15}
16
17impl Default for GenerateCertificateArgs {
18    fn default() -> Self {
19        Self {
20            country_name: Some(String::from("io")),
21            organization_name: Some(String::from("reactive-graph")),
22            common_name: Some(String::from("localhost")),
23        }
24    }
25}