//! Reader and Writer traits for format modules.
usecrate::data::Data;usecrate::error::Result;/// A format that can deserialize records into `Data`.
pubtraitReader{/// Parse `input` (a JSON/XML/URL string) into a `Data` record.
fnread(input:&str)->Result<Data>whereSelf: Sized;
}
/// A format that can serialize `Data` into bytes.
pub trait Writer {/// Serialize `data` into the target format.
fnwrite(data:&Data)->Result<Vec<u8>>whereSelf: Sized;
}