1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
use cratePath;
/// A scope represents a context that contains items of a particular type.
///
/// Generated query types are scopes whose items are instances of the target
/// model. The trait provides associated types for building typed paths and
/// create builders within the scope.
///
/// Whether a particular scope can satisfy a scoped create is decided at
/// execution time: `create_in_scope` always produces a create builder and
/// forwards the scope to the engine, which validates whether it can populate
/// the required fields (for example, by reading a foreign key from a single-
/// step relation traversal).