pub struct Prompt<'a> {
pub text: Cow<'a, str>,
pub echo: bool,
}
Expand description
A prompt/challenge returned as part of keyboard-interactive authentication
The label to show when prompting the user
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.
Formats the value using the given formatter.
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.