Jonas Bushart

Results 121 comments of Jonas Bushart

I think the listed variants work ok and could be added. `unwrap_or_skip` and `unwrap_or_unit` seem very similar, though, and would only differ in the deserialization behavior. They can use the...

Extra fields get ignored and it works with other types instead of `BigDecimal`. https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=3cf05e785f0184c3556cce87683eba55 `BigDecimal` probably doesn't support deserialization from strings. You can get better error messages if you remove...

You are doing two different things here, which is why you get the different results. In the first case the `Point` struct is provided, but all fields are missing, thus...

**EDIT**: This is available as [`serde_with::EnumMap`](https://docs.rs/serde_with/latest/serde_with/struct.EnumMap.html) A slightly different transformation is between a map and a `Vec` of enums like #375. The key is the tag of the enum. Serialize...

Since the issue mentions flattening and `deserialize_any`, the most likely culprit here is https://github.com/serde-rs/serde/issues/1183.

```rust #![feature(adt_const_params)] #[derive(Copy, Clone, Debug, Default)] pub struct Layer SerializeAs for Layer where U: SerializeAs, T: ?Sized, U: ?Sized, { fn serialize_as(source: &T, serializer: S) -> Result where S: Serializer...

> A supplemental use-case for this is a companion to `skip_serializing_none`: APIs which need that (e.g. JSON swagger / openapi) tend to need `skip_serializing_if = "Option::is_none"` on the serialization side,...

Thanks for the feedback. I will try this with the new version.

@SiegeLord Unfortunately, specifying a post command still leaves the race condition. This is the exact code I used. Make sure to remove the `/tmp/plot.png` file before executing it, in case...

The dtolnay/rust-toolchain action felt a bit too bare bones to me, so I created https://github.com/actions-rust-lang/setup-rust-toolchain based on it. It does some extra steps on top like disabling incremental compilation for...