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§
Object Safety§
This trait is not object safe.