miasma 0.2.9

Trap malicious AI web scrapers in an endless pit of poisoned training data.
Documentation
1
2
3
4
5
6
7
8
9
use thiserror::Error;

#[derive(Error, Debug)]
pub enum MetricsError {
    #[error("failed to connect to metrics database: {0:?}")]
    DatabaseConnection(#[from] diesel::ConnectionError),
    #[error("failed to execute database statement: {0:?}")]
    DatabaseQuery(#[from] diesel::result::Error),
}