Trait mysql_connector::model::HasActiveModel
source · pub trait HasActiveModel: ModelData {
type ActiveModel: ActiveModel<Self>;
// Required method
fn into_active_model(self) -> Self::ActiveModel;
}
Required Associated Types§
type ActiveModel: ActiveModel<Self>
Required Methods§
sourcefn into_active_model(self) -> Self::ActiveModel
fn into_active_model(self) -> Self::ActiveModel
Create ActiveModel
containing the model’s data.
If the model has a primary key that is auto increment, it has to be set to ActiveValue::Unset
Object Safety§
This trait is not object safe.