Struct spl_token_cli::config::Config
source · pub struct Config<'a> {Show 14 fields
pub default_signer: Option<Arc<dyn Signer>>,
pub rpc_client: Arc<RpcClient>,
pub program_client: Arc<dyn ProgramClient<ProgramRpcClientSendTransaction>>,
pub websocket_url: String,
pub output_format: OutputFormat,
pub fee_payer: Option<Arc<dyn Signer>>,
pub nonce_account: Option<Pubkey>,
pub nonce_authority: Option<Arc<dyn Signer>>,
pub nonce_blockhash: Option<Hash>,
pub sign_only: bool,
pub dump_transaction_message: bool,
pub multisigner_pubkeys: Vec<&'a Pubkey>,
pub program_id: Pubkey,
pub restrict_to_program_id: bool,
}Fields§
§default_signer: Option<Arc<dyn Signer>>§rpc_client: Arc<RpcClient>§program_client: Arc<dyn ProgramClient<ProgramRpcClientSendTransaction>>§websocket_url: String§output_format: OutputFormat§fee_payer: Option<Arc<dyn Signer>>§nonce_account: Option<Pubkey>§nonce_blockhash: Option<Hash>§sign_only: bool§dump_transaction_message: bool§multisigner_pubkeys: Vec<&'a Pubkey>§program_id: Pubkey§restrict_to_program_id: boolImplementations§
source§impl<'a> Config<'a>
impl<'a> Config<'a>
pub async fn new( matches: &ArgMatches<'_>, wallet_manager: &mut Option<Rc<RemoteWalletManager>>, bulk_signers: &mut Vec<Arc<dyn Signer>>, multisigner_ids: &'a mut Vec<Pubkey> ) -> Config<'a>
pub async fn new_with_clients_and_ws_url( matches: &ArgMatches<'_>, wallet_manager: &mut Option<Rc<RemoteWalletManager>>, bulk_signers: &mut Vec<Arc<dyn Signer>>, multisigner_ids: &'a mut Vec<Pubkey>, rpc_client: Arc<RpcClient>, program_client: Arc<dyn ProgramClient<ProgramRpcClientSendTransaction>>, websocket_url: String ) -> Config<'a>
pub fn fee_payer(&self) -> Result<Arc<dyn Signer>, Error>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Config<'a>
impl<'a> !Send for Config<'a>
impl<'a> !Sync for Config<'a>
impl<'a> Unpin for Config<'a>
impl<'a> !UnwindSafe for Config<'a>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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