pub struct Prompt<'a> {
    pub text: Cow<'a, str>,
    pub echo: bool,
}
Expand description

A prompt/challenge returned as part of keyboard-interactive authentication

Fields

text: Cow<'a, str>

The label to show when prompting the user

echo: bool

If true, the response that the user inputs should be displayed as they type. If false then treat it as a password entry and do not display what is typed in response to this prompt.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.