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§
- certificate_
configuration_ to_ requirements - certificate_
configurations - certificate_
fonts - chapters
- chatbot_
configurations - chatbot_
conversation_ messages - chatbot_
conversations - chatbot_
page_ sync_ statuses - code_
giveaway_ codes - code_
giveaways - course_
background_ question_ answers - course_
background_ questions - course_
custom_ privacy_ policy_ checkbox_ texts - course_
exams - course_
instance_ enrollments - course_
instances - course_
language_ groups - course_
module_ completion_ registered_ to_ study_ registries - course_
module_ completions - course_
modules - courses
- email_
deliveries - email_
templates - ended_
processed_ exams - error
- Contains error and result types for all the model functions.
- exams
- exercise_
language_ groups - exercise_
repositories - exercise_
reset_ logs - exercise_
service_ info - exercise_
services - exercise_
slide_ submissions - exercise_
slides - exercise_
task_ gradings - exercise_
task_ regrading_ submissions - exercise_
task_ submissions - exercise_
tasks - exercises
- feedback
- file_
uploads - flagged_
answers - generated_
certificates - glossary
- join_
code_ uses - library
- marketing_
consents - material_
references - offered_
answers_ to_ peer_ review_ temporary - open_
university_ registration_ links - organizations
- other_
domain_ to_ course_ redirections - page_
audio_ files - page_
history - page_
language_ groups - page_
visit_ datum - page_
visit_ datum_ daily_ visit_ hashing_ keys - page_
visit_ datum_ summary_ by_ courses - page_
visit_ datum_ summary_ by_ courses_ countries - page_
visit_ datum_ summary_ by_ courses_ device_ types - page_
visit_ datum_ summary_ by_ pages - pages
- partner_
block - peer_
or_ self_ review_ configs - peer_
or_ self_ review_ question_ submissions - peer_
or_ self_ review_ questions - peer_
or_ self_ review_ submissions - peer_
review_ queue_ entries - pending_
roles - playground_
examples - prelude
- Re-exports commonly used types for convenient use across the crate.
Intended to be glob-imported like
use crate::prelude::*;
. - privacy_
link - proposed_
block_ edits - proposed_
page_ edits - regradings
- rejected_
exercise_ slide_ submissions - repository_
exercises - research_
forms - roles
- student_
countries - study_
registry_ registrars - suspected_
cheaters - teacher_
grading_ decisions - url_
redirections - user_
course_ instance_ exercise_ service_ variables - user_
course_ settings - user_
details - user_
exercise_ slide_ states - user_
exercise_ states - user_
exercise_ task_ states - user_
research_ consents - users
Enums§
- Course
OrExam Id - Many database tables are related to either a course or an exam
- PKey
Policy - Helper struct to use with functions that insert data into the database.
Traits§
- Spec
Fetcher - 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