Expand description

Module that exports serialize/deserialize functions for use with #[serde(with = "...")] attribute. It only works with fields with RawDescriptor type.

§Examples

use serde::{Deserialize, Serialize};
use base::RawDescriptor;

#[derive(Serialize, Deserialize)]
struct RawContainer {
    #[serde(with = "base::with_raw_descriptor")]
    rd: RawDescriptor,
}

Re-exports§

Functions§