[−][src]Struct amitu_base::Form
Methods
impl<'a> Form<'a>
[src]
pub fn new(mn: &'a Mn<'a>) -> Self
[src]
pub fn add_error<T>(&mut self, name: &str, value: T, message: &str) where
T: Into<String>,
[src]
T: Into<String>,
pub fn c1<T, V>(
&mut self,
name: &str,
value: T,
validator: V
) -> Result<(), Error> where
T: Into<String>,
V: FnOnce(&Mn, &str) -> Result<Option<String>, Error>,
[src]
&mut self,
name: &str,
value: T,
validator: V
) -> Result<(), Error> where
T: Into<String>,
V: FnOnce(&Mn, &str) -> Result<Option<String>, Error>,
pub fn c2<T, V1, V2>(
&mut self,
name: &str,
value: T,
val1: V1,
val2: V2
) -> Result<(), Error> where
T: Into<String> + Clone,
V1: FnOnce(&Mn, &str) -> Result<Option<String>, Error>,
V2: FnOnce(&Mn, &str) -> Result<Option<String>, Error>,
[src]
&mut self,
name: &str,
value: T,
val1: V1,
val2: V2
) -> Result<(), Error> where
T: Into<String> + Clone,
V1: FnOnce(&Mn, &str) -> Result<Option<String>, Error>,
V2: FnOnce(&Mn, &str) -> Result<Option<String>, Error>,
pub fn invalid(&self) -> bool
[src]
pub fn errors<T>(self) -> Result<T, FormErrors>
[src]
Auto Trait Implementations
impl<'a> Unpin for Form<'a>
impl<'a> !Sync for Form<'a>
impl<'a> !Send for Form<'a>
impl<'a> !UnwindSafe for Form<'a>
impl<'a> !RefUnwindSafe for Form<'a>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> IntoSql for T
[src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T> Any for T where
T: Any,
T: Any,