pub struct PoolChainArgs {
pub rpc_url: Option<String>,
pub payment_pool_address: Option<String>,
pub chain_id: Option<u64>,
pub keystore: Option<PathBuf>,
pub keystore_password_file: Option<PathBuf>,
pub data_dir: Option<PathBuf>,
}Expand description
Shared chain + store coordinates for decdn pool subcommands.
The chain coordinates resolve flag > [blockchain] config; the keystore and
data dir resolve flag > [blockchain]/[identity] config > default, exactly
as decdn fetch does. Flattened into each subcommand’s flags so every
pool command shares one precedence path.
Fields§
§rpc_url: Option<String>JSON-RPC endpoint of the chain (else blockchain.rpc_url).
payment_pool_address: Option<String>PaymentPool contract address — the on-chain call target and the
EIP-712 verifyingContract (else blockchain.payment_pool_address).
chain_id: Option<u64>EVM chain id for the EIP-712 domain (else blockchain.chain_id >
default).
keystore: Option<PathBuf>Ethereum keystore path (else blockchain.eth_keystore > under the data
dir). Password from $DECDN_KEYSTORE_PASSWORD, else
--keystore-password-file, else a TTY prompt.
keystore_password_file: Option<PathBuf>File whose contents are the keystore password. Consulted after the
DECDN_KEYSTORE_PASSWORD env var and before an interactive prompt on a
TTY. A single trailing newline is stripped; a file that is empty after
that strip is a deliberate empty password, not an absent source. A path
that does not exist falls through; one that exists but cannot be read is
an error.
data_dir: Option<PathBuf>Data dir holding the buyer-pool store (else identity.data_dir >
default).
Trait Implementations§
Source§impl Args for PoolChainArgs
impl Args for PoolChainArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for PoolChainArgs
impl Debug for PoolChainArgs
Source§impl FromArgMatches for PoolChainArgs
impl FromArgMatches for PoolChainArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for PoolChainArgs
impl RefUnwindSafe for PoolChainArgs
impl Send for PoolChainArgs
impl Sync for PoolChainArgs
impl Unpin for PoolChainArgs
impl UnsafeUnpin for PoolChainArgs
impl UnwindSafe for PoolChainArgs
Blanket Implementations§
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
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> ⓘ
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> ⓘ
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