Module ormlite_core::model

source ·

Traits§

  • A struct that is Insert is expected to have same fields as the model, excluding fields that have sane defaults at the database level. Concretely, if you have a Person struct: #[derive(ormlite::Model)] struct Person { id: i32, name: String, age: i32, }
  • The core trait. a struct that implements Model can also implement HasModelBuilder, (and is required to implement Insertable)
  • A struct that implements ModelBuilder implements the builder pattern for a model.