pub enum OperatorActions {
Show 14 variants
Initialize {
operator_fee_bps: u16,
},
InitializeOperatorVaultTicket {
operator: String,
vault: String,
},
WarmupOperatorVaultTicket {
operator: String,
vault: String,
},
CooldownOperatorVaultTicket {
operator: String,
vault: String,
},
OperatorWarmupNcn {
operator: String,
ncn: String,
},
OperatorCooldownNcn {
operator: String,
ncn: String,
},
OperatorSetAdmin {
operator: String,
old_admin_keypair: String,
new_admin_keypair: String,
},
OperatorSetSecondaryAdmin {
operator: String,
new_admin: String,
set_ncn_admin: bool,
set_vault_admin: bool,
set_voter_admin: bool,
set_delegate_admin: bool,
set_metadata_admin: bool,
},
OperatorSetFees {
operator: String,
operator_fee_bps: u16,
},
OperatorDelegateTokenAccount {
operator: String,
delegate: String,
token_mint: String,
should_create_token_account: bool,
},
Get {
pubkey: String,
},
List,
ListOperatorVaultTicket {
operator: Pubkey,
},
ListNcnOperatorState {
operator: Pubkey,
},
}Variants§
Initialize
Initialize Operator
InitializeOperatorVaultTicket
Initialize Operator Vault Ticket
WarmupOperatorVaultTicket
Warmup Operator Vault Ticket
CooldownOperatorVaultTicket
Cooldown Operator Vault Ticket
OperatorWarmupNcn
Operator Warmup NCN
OperatorCooldownNcn
Operator Cooldown NCN
OperatorSetAdmin
Operator Set Admin
Fields
OperatorSetSecondaryAdmin
Operator Set Secondary Admin
Fields
OperatorSetFees
Sets the operator fee
OperatorDelegateTokenAccount
Operator Delegate Token Account
Get
Get operator
List
List all operators
ListOperatorVaultTicket
List Operator Vault Ticket for an Operator
ListNcnOperatorState
List All Ncn Operator State for a Operator
Trait Implementations§
Source§impl FromArgMatches for OperatorActions
impl FromArgMatches for OperatorActions
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 OperatorActions
impl Subcommand for OperatorActions
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 OperatorActions
impl RefUnwindSafe for OperatorActions
impl Send for OperatorActions
impl Sync for OperatorActions
impl Unpin for OperatorActions
impl UnwindSafe for OperatorActions
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