quick_error! {
#[derive(Debug, PartialEq)]
pub enum Error {
CanNotReplace {
display("Only struct which has field `_id` can use replace method")
}
Serialize {
from(::serde_json::error::Error)
}
RequiresId {
display("Required id.")
}
FieldNotFound {
display("Query field can not be not found in the struct.")
}
}
}