pub struct ProviderForm { /* private fields */ }Expand description
The form’s values while it is open, with what the last save found wrong in the framework’s own
FormErrors, named after the controls the problems belong to.
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 errors(&self) -> &FormErrors
pub fn errors(&self) -> &FormErrors
What the last save found wrong, for the fields to show and for focus to follow.
Sourcepub fn make_key_file_private(&mut self)
pub fn make_key_file_private(&mut self)
Makes the key file readable by its owner alone, which the person asked for with the button beside the warning; what went wrong, if anything, is said under the field.
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