Function base::descriptor_reflection::serialize_descriptor
source · pub fn serialize_descriptor<S: Serializer>(
rd: &RawDescriptor,
se: S
) -> Result<S::Ok, S::Error>
Expand description
Serializes a descriptor for later retrieval in a parent SerializeDescriptors
struct.
If there is no parent SerializeDescriptors
being serialized, 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.