pub struct Config<'a> {Show 16 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,
pub compute_unit_price: Option<u64>,
pub compute_unit_limit: ComputeUnitLimit,
}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: bool§compute_unit_price: Option<u64>§compute_unit_limit: ComputeUnitLimitImplementations§
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> Freeze for Config<'a>
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§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
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