taitan-orm-parser 0.1.12

Next Generation ORM based on sqlx
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[derive(Debug)]
pub struct TemplateParseError(pub String);
impl std::error::Error for TemplateParseError {}
impl std::fmt::Display for TemplateParseError {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        write!(f, "template parse error: {}", self.0)
    }
}
impl<T> From<T> for TemplateParseError
where
    T: Into<String>,
{
    fn from(s: T) -> Self {
        TemplateParseError(s.into())
    }
}