pub enum NcnActions {
Show 14 variants
Initialize {
path_to_base_keypair: Option<String>,
},
InitializeNcnOperatorState {
ncn: String,
operator: String,
},
NcnWarmupOperator {
ncn: String,
operator: String,
},
NcnCooldownOperator {
ncn: String,
operator: String,
},
InitializeNcnVaultTicket {
ncn: String,
vault: String,
},
WarmupNcnVaultTicket {
ncn: String,
vault: String,
},
CooldownNcnVaultTicket {
ncn: String,
vault: String,
},
NcnDelegateTokenAccount {
ncn: String,
delegate: String,
token_mint: String,
should_create_token_account: bool,
},
Get {
pubkey: String,
},
List,
ListNcnOperatorState {
ncn: Pubkey,
},
ListNcnVaultTicket {
ncn: Pubkey,
},
NcnSetAdmin {
ncn: Pubkey,
old_admin_keypair: String,
new_admin_keypair: String,
},
NcnSetSecondaryAdmin {
ncn: String,
new_admin: String,
set_operator_admin: bool,
set_vault_admin: bool,
set_slasher_admin: bool,
set_delegate_admin: bool,
set_metadata_admin: bool,
set_weight_table_admin: bool,
set_ncn_program_admin: bool,
},
}Variants§
Initialize
Initialize NCN
InitializeNcnOperatorState
Initialize NCN Operator State
NcnWarmupOperator
Warmup NCN Operator State
NcnCooldownOperator
NCN Cooldown Operator State
InitializeNcnVaultTicket
Initialize NCN Vault Ticket
WarmupNcnVaultTicket
Warmup NCN Vault Ticket
CooldownNcnVaultTicket
Cooldown NCN Vault Ticket
NcnDelegateTokenAccount
NCN Delegate Token Account
Get
Get NCN
List
List all NCNs
ListNcnOperatorState
List All Ncn Operator State for a NCN
ListNcnVaultTicket
List All Ncn Vault Ticket for a NCN
NcnSetAdmin
Set NCN Admin
Fields
NcnSetSecondaryAdmin
Set NCN Secondary Admin
Fields
Trait Implementations§
Source§impl FromArgMatches for NcnActions
impl FromArgMatches for NcnActions
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for NcnActions
impl Subcommand for NcnActions
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for NcnActions
impl RefUnwindSafe for NcnActions
impl Send for NcnActions
impl Sync for NcnActions
impl Unpin for NcnActions
impl UnwindSafe for NcnActions
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more