pub trait SerDeShelleyFileFormat: Serialize + DeserializeOwned {
const TYPE: &'static str;
const DESCRIPTION: &'static str;
// Provided methods
fn from_file<P: AsRef<Path>>(path: P) -> Result<Self, CodecParseError> { ... }
fn to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), CodecParseError> { ... }
}
Expand description
Trait that allows any structure that implements Serialize and DeserializeOwned to be serialized and deserialized following the Shelly json format.
Required Associated Constants§
Sourceconst DESCRIPTION: &'static str
const DESCRIPTION: &'static str
The description of the Cardano key
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.