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

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 verbose: bool,
}

Fields

command: CliCommandjson_rpc_url: Stringwebsocket_url: Stringsigners: Vec<&'a dyn Signer>keypair_path: Stringrpc_client: Option<RpcClient>verbose: bool

Methods

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]

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> 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> Clear for T where
    T: InitializableFromZeroed + ?Sized

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

impl<T> InitializableFromZeroed for T where
    T: Default

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

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>,