#[non_exhaustive]pub struct ClientKeyboardInteractiveInfo {
pub name: String,
pub instructions: String,
/* private fields */
}Expand description
Information about a keyboard-interactive authentication prompt.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringHuman-readable name describing the authentication step.
instructions: StringInstructions for the user (may be empty).
Implementations§
Source§impl ClientKeyboardInteractiveInfo
impl ClientKeyboardInteractiveInfo
Sourcepub fn new(
name: String,
instructions: String,
prompts: Vec<ClientKeyboardInteractivePrompt>,
) -> Self
pub fn new( name: String, instructions: String, prompts: Vec<ClientKeyboardInteractivePrompt>, ) -> Self
Creates a new info request from the given fields.
This constructor is intended for wrapping raw russh keyboard-interactive info requests.
Sourcepub fn prompts(&self) -> &[ClientKeyboardInteractivePrompt]
pub fn prompts(&self) -> &[ClientKeyboardInteractivePrompt]
Returns the prompts in this keyboard-interactive challenge.
Trait Implementations§
Source§impl Clone for ClientKeyboardInteractiveInfo
impl Clone for ClientKeyboardInteractiveInfo
Source§fn clone(&self) -> ClientKeyboardInteractiveInfo
fn clone(&self) -> ClientKeyboardInteractiveInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ClientKeyboardInteractiveInfo
impl RefUnwindSafe for ClientKeyboardInteractiveInfo
impl Send for ClientKeyboardInteractiveInfo
impl Sync for ClientKeyboardInteractiveInfo
impl Unpin for ClientKeyboardInteractiveInfo
impl UnsafeUnpin for ClientKeyboardInteractiveInfo
impl UnwindSafe for ClientKeyboardInteractiveInfo
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