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
implement utility methods on partial structs (#206)
This PR adds methods with the goal of making Partials structs a bit more
ergonomic to work with rather than using only struct expressions.
Before:
```rust
let day = Some(24);
let date = PartialDate {
day,
..Default::default()
};
````
After:
```rust
let day = Some(24);
let date = PartialDate::default().with_day(day);
```
If this doesn't make much sense and it's preferred to keep the current
method of `StructExpressions`
0 commit comments