ToCreateModel

Derive Macro ToCreateModel 

Source
#[derive(ToCreateModel)]
{
    // Attributes available to this derive:
    #[crudcrate]
    #[active_model]
}
Expand description

Generates <Name>Create struct with fields not excluded by exclude(create). Fields with on_create become Option<T> to allow user override. Implements From<NameCreate> for ActiveModel with automatic value generation.