Struct solana_cli::cli::CliConfig[][src]

pub struct CliConfig<'a> {
    pub command: CliCommand,
    pub json_rpc_url: String,
    pub websocket_url: String,
    pub signers: Vec<&'a dyn Signer>,
    pub keypair_path: String,
    pub rpc_client: Option<RpcClient>,
    pub rpc_timeout: Duration,
    pub verbose: bool,
    pub output_format: OutputFormat,
    pub commitment: CommitmentConfig,
    pub send_transaction_config: RpcSendTransactionConfig,
    pub address_labels: HashMap<String, String>,
}

Fields

command: CliCommandjson_rpc_url: Stringwebsocket_url: Stringsigners: Vec<&'a dyn Signer>keypair_path: Stringrpc_client: Option<RpcClient>rpc_timeout: Durationverbose: booloutput_format: OutputFormatcommitment: CommitmentConfigsend_transaction_config: RpcSendTransactionConfigaddress_labels: HashMap<String, String>

Implementations

impl CliConfig<'_>[src]

pub fn compute_websocket_url_setting(
    websocket_cmd_url: &str,
    websocket_cfg_url: &str,
    json_rpc_cmd_url: &str,
    json_rpc_cfg_url: &str
) -> (SettingType, String)
[src]

pub fn compute_json_rpc_url_setting(
    json_rpc_cmd_url: &str,
    json_rpc_cfg_url: &str
) -> (SettingType, String)
[src]

pub fn compute_keypair_path_setting(
    keypair_cmd_path: &str,
    keypair_cfg_path: &str
) -> (SettingType, String)
[src]

pub fn compute_commitment_config(
    commitment_cmd: &str,
    commitment_cfg: &str
) -> (SettingType, CommitmentConfig)
[src]

pub fn recent_for_tests() -> Self[src]

Trait Implementations

impl Default for CliConfig<'_>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for CliConfig<'a>

impl<'a> !Send for CliConfig<'a>

impl<'a> !Sync for CliConfig<'a>

impl<'a> Unpin for CliConfig<'a>

impl<'a> !UnwindSafe for CliConfig<'a>

Blanket Implementations

impl<T> AbiExample for T

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]