Struct dodo::serializer::JsonSerializer [−][src]
pub struct JsonSerializer;
JSON serializer (using Serde).
Examples
use dodo::prelude::*; type PersonCollection = Collection<Person, Directory, JsonSerializer>; fn main() -> Result<(), Box<dyn std::error::Error>> { let directory = Directory::new(&path)?; let mut collection = PersonCollection::new(directory); Ok(()) }
Trait Implementations
impl Clone for JsonSerializer
[src]
impl Clone for JsonSerializer
[src]fn clone(&self) -> JsonSerializer
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Serializer for JsonSerializer
[src]
impl Serializer for JsonSerializer
[src]fn serialize<T, W>(writer: W, value: &T) -> Result<()> where
T: Serialize + DeserializeOwned,
W: Write,
[src]
T: Serialize + DeserializeOwned,
W: Write,
fn deserialize<T, R>(reader: R) -> Result<T> where
T: Serialize + DeserializeOwned,
R: Read,
[src]
T: Serialize + DeserializeOwned,
R: Read,
Auto Trait Implementations
impl RefUnwindSafe for JsonSerializer
impl RefUnwindSafe for JsonSerializer
impl Send for JsonSerializer
impl Send for JsonSerializer
impl Sync for JsonSerializer
impl Sync for JsonSerializer
impl Unpin for JsonSerializer
impl Unpin for JsonSerializer
impl UnwindSafe for JsonSerializer
impl UnwindSafe for JsonSerializer