pub enum ProgramCliCommand {
    Deploy {
        program_location: Option<String>,
        program_signer_index: Option<SignerIndex>,
        program_pubkey: Option<Pubkey>,
        buffer_signer_index: Option<SignerIndex>,
        buffer_pubkey: Option<Pubkey>,
        upgrade_authority_signer_index: SignerIndex,
        is_final: bool,
        max_len: Option<usize>,
        allow_excessive_balance: bool,
    },
    WriteBuffer {
        program_location: String,
        buffer_signer_index: Option<SignerIndex>,
        buffer_pubkey: Option<Pubkey>,
        buffer_authority_signer_index: Option<SignerIndex>,
        max_len: Option<usize>,
    },
    SetBufferAuthority {
        buffer_pubkey: Pubkey,
        buffer_authority_index: Option<SignerIndex>,
        new_buffer_authority: Pubkey,
    },
    SetUpgradeAuthority {
        program_pubkey: Pubkey,
        upgrade_authority_index: Option<SignerIndex>,
        new_upgrade_authority: Option<Pubkey>,
    },
    Show {
        account_pubkey: Option<Pubkey>,
        authority_pubkey: Pubkey,
        get_programs: bool,
        get_buffers: bool,
        all: bool,
        use_lamports_unit: bool,
    },
    Dump {
        account_pubkey: Option<Pubkey>,
        output_location: String,
    },
    Close {
        account_pubkey: Option<Pubkey>,
        recipient_pubkey: Pubkey,
        authority_index: SignerIndex,
        use_lamports_unit: bool,
    },
}

Variants

Deploy

Fields

program_location: Option<String>
program_signer_index: Option<SignerIndex>
program_pubkey: Option<Pubkey>
buffer_signer_index: Option<SignerIndex>
buffer_pubkey: Option<Pubkey>
upgrade_authority_signer_index: SignerIndex
is_final: bool
max_len: Option<usize>
allow_excessive_balance: bool

WriteBuffer

Fields

program_location: String
buffer_signer_index: Option<SignerIndex>
buffer_pubkey: Option<Pubkey>
buffer_authority_signer_index: Option<SignerIndex>
max_len: Option<usize>

SetBufferAuthority

Fields

buffer_pubkey: Pubkey
buffer_authority_index: Option<SignerIndex>
new_buffer_authority: Pubkey

SetUpgradeAuthority

Fields

program_pubkey: Pubkey
upgrade_authority_index: Option<SignerIndex>
new_upgrade_authority: Option<Pubkey>

Show

Fields

account_pubkey: Option<Pubkey>
authority_pubkey: Pubkey
get_programs: bool
get_buffers: bool
all: bool
use_lamports_unit: bool

Dump

Fields

account_pubkey: Option<Pubkey>
output_location: String

Close

Fields

account_pubkey: Option<Pubkey>
recipient_pubkey: Pubkey
authority_index: SignerIndex
use_lamports_unit: bool

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more