pub struct ConfigResolver;Expand description
Resolve global and command-specific configuration from environment variables.
Implementations§
Source§impl ConfigResolver
impl ConfigResolver
Sourcepub fn resolve_keypair(explicit: Option<String>) -> Option<String>
pub fn resolve_keypair(explicit: Option<String>) -> Option<String>
Resolve the signer keypair path with fallback to environment.
Sourcepub fn resolve_max_fee(explicit: Option<u64>) -> Option<u64>
pub fn resolve_max_fee(explicit: Option<u64>) -> Option<u64>
Resolve max fee with fallback to environment.
Sourcepub fn resolve_output_format(explicit: Option<OutFmt>) -> Option<OutFmt>
pub fn resolve_output_format(explicit: Option<OutFmt>) -> Option<OutFmt>
Resolve output format with fallback to environment.
Sourcepub fn resolve_json(explicit: bool) -> bool
pub fn resolve_json(explicit: bool) -> bool
Resolve global JSON flag.
Sourcepub fn resolve_force(explicit: bool) -> bool
pub fn resolve_force(explicit: bool) -> bool
Resolve global Force flag.
Sourcepub fn resolve_yes(explicit: bool) -> bool
pub fn resolve_yes(explicit: bool) -> bool
Resolve global Yes flag.
Auto Trait Implementations§
impl Freeze for ConfigResolver
impl RefUnwindSafe for ConfigResolver
impl Send for ConfigResolver
impl Sync for ConfigResolver
impl Unpin for ConfigResolver
impl UnsafeUnpin for ConfigResolver
impl UnwindSafe for ConfigResolver
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
Mutably borrows from an owned value. Read more