You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attributes within a section below are considered mutually exclusive.
42
+
43
+
## Skip attributes
44
+
45
+
|||
46
+
|-|-|
47
+
|`skip`| Unconditionally skips a field. |
48
+
|`skip_if = path::to::function`| Skips a field if `path::to::function(&field)` returns `true`. |
49
+
50
+
## Format attributes
51
+
52
+
|||
53
+
|-|-|
54
+
|`format = "format string {}"`| Formats a field using a format string. Must contain a placeholder (`{}`) with modifiers of your choice. |
55
+
|`with = path::to::formatter`| Formats a field using `path::to::formatter`. The required signature is `fn(&T, &mut std::fmt::Formatter) -> std::fmt::Result` where `T` is a type compatible with the field's type (i.e. the function can be generic and coercions apply). |
0 commit comments