kangalio
kangalio
That is true, the workaround doesn't have optimal API. I just posted it here because it at least saves you from reimplementing all fields deserialization logic, which was the main...
I've been noticing that it's not enough to simply restart the client to make the sync drift go away; it needs to stay closed for a while, or it won't...
I think a `#[serde(default)]` variant attribute is the better choice. It aligns with Rust's built-in `#[default]` attribute on enum variants: https://doc.rust-lang.org/std/default/trait.Default.html#enums
> This can be used by developers to ensure, that they match all enum variants or struct fields during pattern matching. You can already add a match case for `__NonExhaustive`...
This is what I meant  It does work for those `__non_exhaustive` struct fields and `__NonExhaustive` enum variants. It does _not_ work for the `#[non_exhaustive]` attribute. I avoid that attribute...