pub fn deserialize(
        serialized_checkpoint: CheckpointSerialization,
    ) -> Result<Checkpoint, PersistenceError> {
        let mapping = match serialized_checkpoint.mapping {
            None => None,
            Some(mapping) => Mapping::deserialize(mapping)?,
        };
        Ok(Checkpoint {
            mapping: mapping.map(Arc::new),
        })
    }
/// Creates `Checkpoint` from the given serialization-friendly
/// representation.
Creates `Checkpoint` from the given serialization-friendly
representation.
Creates ` Checkpoint ` from the given serialization - friendly representation .
pub fn deserialize(
        serialized_checkpoint: CheckpointSerialization,
    ) -> Result<Checkpoint, PersistenceError> {
        let mapping = match serialized_checkpoint.mapping {
            None => None,
            Some(mapping) => Mapping::deserialize(mapping)?,
        };
        Ok(Checkpoint {
            mapping: mapping.map(Arc::new),
        })
    }
pub fn deserialize ( serialized_checkpoint : CheckpointSerialization , ) -> Result < Checkpoint , PersistenceError > { let mapping = match serialized_checkpoint . mapping { None => None , Some ( mapping ) => Mapping :: deserialize ( mapping ) ? , } ; Ok ( Checkpoint { mapping : mapping . map ( Arc :: new ) , } ) }
Creates `Checkpoint` from the given serialization-friendly
representation.
Creates ` Checkpoint ` from the given serialization - friendly representation .
serialized_checkpoint
CheckpointSerialization
serialized_checkpoint
CheckpointSerialization