Try<Encoding>From (try_encoding_from)
This library contains a convenient API wrapper for serde_json,
serde_yaml, and serde_cbor inspired by the TryFrom and
TryInto traits.
The serde, serde_json, serde_yaml, and serde_cbor crates
are included and available under the feature flags:
json, yaml, and cbor.
Please see the encoding module's API
for the available optional trait definitions. Note: using
json, yaml, or cbor features will
require inclusion of the serde crate as Serialize, Deserialize,
DeserializeOwned traits are required for the library to compile.
Example
use TryJsonFrom;
use ;
Usage
Add the following to your Cargo.toml file:
[]
= "0.1.3"
API
Please see the API for a full list of available methods.
License
This work is dually licensed under MIT OR Apache-2.0.