Module base::descriptor_reflection::with_as_descriptor
source · Expand description
Module that exports serialize
/deserialize
functions for use with #[serde(with = "...")]
attribute.
§Examples
use std::fs::File;
use serde::{Deserialize, Serialize};
use base::RawDescriptor;
#[derive(Serialize, Deserialize)]
struct FileContainer {
#[serde(with = "base::with_as_descriptor")]
file: File,
}