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§
Auto Trait Implementations§
impl<'a> Freeze for Prompt<'a>
impl<'a> RefUnwindSafe for Prompt<'a>
impl<'a> Send for Prompt<'a>
impl<'a> Sync for Prompt<'a>
impl<'a> Unpin for Prompt<'a>
impl<'a> UnwindSafe for Prompt<'a>
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