pub fn with_serde_mode<R>(mode: SerdeMode, f: impl FnOnce() -> R) -> R
unstable
Sets the specified serde mode and runs the function.
If the provided function panics.
This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.