with_serde_mode

Function with_serde_mode 

Source
pub fn with_serde_mode<R>(mode: SerdeMode, f: impl FnOnce() -> R) -> R
Available on crate feature unstable only.
Expand description

Sets the specified serde mode and runs the function.

§Panics

If the provided function panics.

§Availability

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.