pub struct DialoguerPrompter;Expand description
Real Prompter backed by dialoguer. Uses the crate’s default
colorful theme so the PAT prompt, select list, etc. match standard
CLI ergonomics.
Trait Implementations§
Source§impl Prompter for DialoguerPrompter
impl Prompter for DialoguerPrompter
Source§fn pat(&self, accounts_url: &str) -> Result<String>
fn pat(&self, accounts_url: &str) -> Result<String>
Prompt for a user PAT (
tf_user_*). accounts_url is the page
where the human can mint/copy one.Source§fn wallet_mode(&self) -> Result<WalletMode>
fn wallet_mode(&self) -> Result<WalletMode>
Prompt for a wallet-mode choice (BYOW / generate / skip).
Source§fn wallet_address(&self) -> Result<String>
fn wallet_address(&self) -> Result<String>
Prompt for a
0x…-prefixed wallet address (BYOW path).Source§fn wallet_password(&self) -> Result<String>
fn wallet_password(&self) -> Result<String>
Prompt for a keystore password, asking for confirmation (generate path).
Auto Trait Implementations§
impl Freeze for DialoguerPrompter
impl RefUnwindSafe for DialoguerPrompter
impl Send for DialoguerPrompter
impl Sync for DialoguerPrompter
impl Unpin for DialoguerPrompter
impl UnsafeUnpin for DialoguerPrompter
impl UnwindSafe for DialoguerPrompter
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
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