pub trait New<T>: Sized {
// Required method
fn new(form: T) -> Result<Self, Error>;
}
Expand description
The New
trait of the Aragog library.
This trait provides the possibility to initialize a Type from an other one. Its main use
it to transform a Http form into a Record
model instance.
Required Methods§
Object Safety§
This trait is not object safe.