Function base::descriptor_reflection::deserialize_descriptor
source · pub fn deserialize_descriptor<'de, D>(de: D) -> Result<SafeDescriptor, D::Error>where
D: Deserializer<'de>,
Expand description
Deserializes a descriptor provided via deserialize_with_descriptors
.
If deserialize_with_descriptors
is not in the call chain, this will return an error.
For convenience, it is recommended to use the with_raw_descriptor
module in a #[serde(with = "...")]
attribute which will make use of this function.