You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: naive_datetime.rs
    path of file: ./repos/grafbase/engine/crates/engine/src/registry/scalars
    
    the code of the file until where you have to start completion: use chrono::NaiveDateTime;
use engine_value::ConstValue;

use super::{DynamicParse, SDLDefinitionScalar};
use crate::{Error, InputValueError, InputValueResult};

pub struct NaiveDateTimeScalar;

impl NaiveDateTimeScalar {
    pub fn parse_value(value: serde_json::Value) -> Result<NaiveDateTime, Error> {
        Ok(serde_json::from_value::<String>(value)?
    
    fn to_value(value: serde_json::Value) -> Result<ConstValue, Error> {
        match value {
            serde_json::Value::String(v) => {
                v.parse::<NaiveDateTime>()
                    .map_err(|_| Error::new("Data violation: Cannot coerce the initial value to NaiveDateTime"))?;

                Ok(ConstValue::String(v))
            }
            _ => Err(Error::new(
                "Data violation: Cannot coerce the initial value to a NaiveDateTime",
            )),
        }
    }