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
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,8 +110,9 @@ Field attributes:
110
110
-`#[patch(name = "...")]`: change the type of the field in the generated patch struct.
111
111
-`#[patch(attribute(...))]`: add attributes to the field in the generated patch struct.
112
112
-`#[patch(attribute(derive(...)))]`: add derives to the field in the generated patch struct.
113
+
-`#[patch(empty_value = ...)]`: define a value as empty, so the corresponding field of patch will not wrapped by Option, and apply patch when the field is empty.
113
114
-`#[filler(extendable)]`: use the struct of field for filler, the struct needs implement `Default`, `Extend`, `IntoIterator` and `is_empty`.
114
-
-`#[filler(empty_value)]`: define a value as empty, so the corresponding field of Filler will be applied, even the field is not `Option` or `Extendable`.
115
+
-`#[filler(empty_value = ...)]`: define a value as empty, so the corresponding field of Filler will be applied, even the field is not `Option` or `Extendable`.
115
116
116
117
Please check the [traits][doc-traits] of document to learn more.
0 commit comments