nym_cli_commands/validator/mixnet/operators/
mod.rs

1// Copyright 2021 - Nym Technologies SA <contact@nymtech.net>
2// SPDX-License-Identifier: Apache-2.0
3
4use clap::{Args, Subcommand};
5
6pub mod gateway;
7pub mod identity_key;
8pub mod mixnode;
9pub mod nymnode;
10
11#[derive(Debug, Args)]
12#[clap(args_conflicts_with_subcommands = true, subcommand_required = true)]
13pub struct MixnetOperators {
14    #[clap(subcommand)]
15    pub command: MixnetOperatorsCommands,
16}
17
18#[allow(clippy::large_enum_variant)]
19#[derive(Debug, Subcommand)]
20pub enum MixnetOperatorsCommands {
21    /// Manage your Nym Node
22    Nymnode(nymnode::MixnetOperatorsNymNode),
23    /// Manage your legacy mixnode
24    Mixnode(mixnode::MixnetOperatorsMixnode),
25    /// Manage your legacy gateway
26    Gateway(gateway::MixnetOperatorsGateway),
27    /// Sign messages using your private identity key
28    IdentityKey(identity_key::MixnetOperatorsIdentityKey),
29}