pub enum FormField {
Alias,
Hostname,
User,
Port,
IdentityFile,
ProxyJump,
AskPass,
VaultSsh,
VaultAddr,
Tags,
}Variants§
Implementations§
Source§impl FormField
impl FormField
pub const ALL: [FormField; 10]
pub fn label(self) -> &'static str
Sourcepub fn is_picker(self) -> bool
pub fn is_picker(self) -> bool
Whether this field opens a picker overlay when activated with Space.
Picker fields: IdentityFile, ProxyJump, AskPass, VaultSsh. All other fields are plain text inputs. The handler dispatches Space to a picker for these fields and falls through to literal-character insertion for the rest.
Note: VaultSsh is a picker only when the host’s role candidates
list is non-empty. The handler must consult App::vault_role_candidates
before opening the picker; with no candidates, Space inserts a
literal space (the user types the role manually).
Sourcepub fn kind(self) -> FieldKind
pub fn kind(self) -> FieldKind
Field kind for crate::ui::design::FieldKind. Drives dynamic
footer hints in the host form (Space pick vs no hint).
Trait Implementations§
impl Copy for FormField
impl StructuralPartialEq for FormField
Auto Trait Implementations§
impl Freeze for FormField
impl RefUnwindSafe for FormField
impl Send for FormField
impl Sync for FormField
impl Unpin for FormField
impl UnsafeUnpin for FormField
impl UnwindSafe for FormField
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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