Trait aragog::New [−][src]
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
fn new(form: T) -> Result<Self, ServiceError>
[src]
Instantiate and returns a new Self
instance from T
.
Can fail and return an error, the error is in most of the cases a ServiceError
::ValidationError
on fields validation failure