Expand description
Functions and structs for interacting with the database.
Each submodule corresponds to a database table.
Re-exports§
pub use self::error::ModelError;
pub use self::error::ModelErrorType;
pub use self::error::ModelResult;
Modules§
- Contains error and result types for all the model functions.
- Re-exports commonly used types for convenient use across the crate. Intended to be glob-imported like
use crate::prelude::*;
.
Enums§
- Many database tables are related to either a course or an exam
- Helper struct to use with functions that insert data into the database.
Traits§
- A “trait alias” so this
for<'a>
… string doesn’t need to be repeated everywhere Arguments:Url
: The URL that the request is sent to (the exercise service’s endpoint)&str
: Exercise type/service slugOption<Value>
: The Json for the request, for example the private spec in a public spec request