mysql_async_support_model 0.3.0

Supporting types for interacting with mysql databases.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::Error;

/// Query target name and error when attempting to run the query.
#[derive(Debug)]
pub struct QueryError {
    /// Name of the query target.
    pub name: String,
    /// The error that occurred when running the query.
    pub error: Error,
}

impl std::ops::Deref for QueryError {
    type Target = Error;

    fn deref(&self) -> &Self::Target {
        &self.error
    }
}