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 crate::;
/// A reference to an embedded model (struct or enum) that is stored inline
/// within its parent model's table rather than in a separate table.
///
/// Embedded fields are flattened into the parent table's columns at the
/// database level, but appear as nested types at the application level.
///
/// # Examples
///
/// ```ignore
/// use toasty_core::schema::app::Embedded;
///
/// // Embedded is typically constructed by the schema builder.
/// let embedded: &Embedded = field.ty.as_embedded_unwrap();
/// let target_model = embedded.target(&schema);
/// ```