Skip to content

Commit e7222c6

Browse files
committed
update readme
1 parent 40a7f25 commit e7222c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ Field attributes:
112112
- `#[patch(name = "...")]`: change the type of the field in the generated patch struct.
113113
- `#[patch(attribute(...))]`: add attributes to the field in the generated patch struct.
114114
- `#[patch(attribute(derive(...)))]`: add derives to the field in the generated patch struct.
115-
- `#[filler(extendable)]`: use the struct of field for Filler, the struct needs implement `Default`, `Extend`, `IntoIterator` and `is_empty`.
115+
- `#[filler(extendable)]`: use the struct of field for filler, the struct needs implement `Default`, `Extend`, `IntoIterator` and `is_empty`.
116+
- `#[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`.
116117

117118
Please check the [traits][doc-traits] of document to learn more.
118119

0 commit comments

Comments
 (0)