Skip to main content

Module field_changes

Module field_changes 

Source
Expand description

What a change does to an entity, field by field, in the shape the review page and agents read.

Structs§

ExerciseFieldOwner
The exercise of a page a field change is in.
FieldChange
One field a change sets to another value.

Enums§

EntityField
A field of an entity snapshot that a change can set, named as the snapshot names it. Ids and page content are no fields: content is shown rendered.
FieldValue
A field’s value, typed for display.

Traits§

HasFields 🔒
The fields of each kind of entity. Each destructures its snapshot, so that a new snapshot field can’t go unlisted.

Functions§

date_time 🔒
diff 🔒
The fields that differ between two states of one entity, None for a state where it doesn’t exist; both must be of the same kind.
exercise_field_changes
The fields agents edit that differ between two states of one exercise. Review instructions count only where the exercise has its own; the course default’s are its own entity’s.
exercises_field_changes 🔒
The field changes of exercises from their records in before; exercises without one there are new, so their fields are left out.
field_changes
What a change does to an entity, field by field, with references left unlabelled; see FieldChange::references_mut. A page’s exercises are compared with exercises_before, the exercises before the change by id, wherever they were.
flag 🔒
number 🔒
optional_text 🔒
reference 🔒
A reference to be labelled; see FieldChange::references_mut.
text 🔒

Type Aliases§

Fields 🔒