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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/// Strategy for automatically populating a field's value on insert.
///
/// When a field has an `AutoStrategy`, Toasty generates the value
/// automatically when a new record is created, rather than requiring the
/// caller to supply it.
///
/// # Examples
///
/// ```
/// use toasty_core::schema::app::{AutoStrategy, UuidVersion};
///
/// let strategy = AutoStrategy::Uuid(UuidVersion::V4);
/// assert!(!strategy.is_increment());
///
/// let inc = AutoStrategy::Increment;
/// assert!(inc.is_increment());
/// ```
/// UUID version to use for auto-generated UUID fields.
///
/// # Examples
///
/// ```
/// use toasty_core::schema::app::UuidVersion;
///
/// let v4 = UuidVersion::V4;
/// let v7 = UuidVersion::V7;
/// ```