[][src]Struct yew_form::form::Form

pub struct Form<T: Model> { /* fields omitted */ }

Implementations

impl<T: Model> Form<T>[src]

pub fn new(model: T) -> Form<T>[src]

pub fn validate(&mut self) -> bool[src]

pub fn valid(&self) -> bool[src]

pub fn field_value(&self, field_name: &str) -> &str[src]

pub fn field_valid(&self, field_name: &str) -> bool[src]

pub fn field_message(&self, field_name: &str) -> &str[src]

pub fn set_field_value(&mut self, field_name: &str, field_value: &str)[src]

pub fn model(&self) -> &T[src]

pub fn model_mut(&mut self) -> &mut T[src]

Trait Implementations

impl<T: Clone + Model> Clone for Form<T>[src]

impl<T: Model> PartialEq<Form<T>> for Form<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for Form<T>

impl<T> !Send for Form<T>

impl<T> !Sync for Form<T>

impl<T> Unpin for Form<T>

impl<T> UnwindSafe for Form<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.