pub fn deserialize_with_descriptors<F, T, E>(
    f: F,
    descriptors: impl IntoIterator<Item = SafeDescriptor>
) -> Result<T, E>
where F: FnOnce() -> Result<T, E>, E: Error,
Expand description

Allows the use of any serde deserializer within a closure while providing access to the a set of descriptors for use in deserialize_descriptor.

This is the corresponding call to use deserialize after using SerializeDescriptors.

If deserialize_with_descriptors is called anywhere within the given closure, it return an error.