Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yanganto committed Aug 6, 2024
1 parent f3e0f67 commit fa92ce6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,13 @@ Also, you can modify the patch structure by defining `#[patch(...)]` attributes
Struct attributes:
- `#[patch(name = "...")]`: change the name of the generated patch struct.
- `#[patch(attribute(...))]`: add attributes to the generated patch struct.
- `#[patch(attribute(derive(...)))]`: add derives to the generated patch struct.

Field attributes:
- `#[patch(skip)]`: skip the field in the generated patch struct.
- `#[patch(type = "...")]`: change the type of the field in the generated patch struct.
- `#[patch(name = "...")]`: change the type of the field in the generated patch struct.
- `#[patch(attribute(...))]`: add attributes to the field in the generated patch struct.
- `#[patch(attribute(derive(...)))]`: add derives to the field in the generated patch struct.

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

Expand Down

0 comments on commit fa92ce6

Please sign in to comment.