pub struct ProviderForm { /* private fields */ }Expand description
The form’s values while it is open.
Implementations§
Source§impl ProviderForm
impl ProviderForm
Sourcepub fn from_provider(provider: &Provider) -> Self
pub fn from_provider(provider: &Provider) -> Self
The form filled with provider.
Sourcepub fn check(&mut self) -> Option<Provider>
pub fn check(&mut self) -> Option<Provider>
The provider when every field holds what it must, the key file included; otherwise the problems are kept for the form to show and there is nothing to save.
Sourcepub fn first_problem(&self) -> Option<&'static str>
pub fn first_problem(&self) -> Option<&'static str>
The id of the first field with a problem, for focus to go to after a failed save.
Trait Implementations§
Source§impl Clone for ProviderForm
impl Clone for ProviderForm
Source§impl Debug for ProviderForm
impl Debug for ProviderForm
impl Eq for ProviderForm
Source§impl PartialEq for ProviderForm
impl PartialEq for ProviderForm
impl StructuralPartialEq for ProviderForm
Auto Trait Implementations§
impl Freeze for ProviderForm
impl RefUnwindSafe for ProviderForm
impl Send for ProviderForm
impl Sync for ProviderForm
impl Unpin for ProviderForm
impl UnsafeUnpin for ProviderForm
impl UnwindSafe for ProviderForm
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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