dacquiri 0.5.1

An authorization framework with compile-time enforcement.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14

#[derive(Debug)]
pub enum ConstraintError {
    EntityAlreadyExists,
    EntityDoesNotExist
}

impl From<ConstraintError> for () {
    fn from(_: ConstraintError) -> Self { }
}

impl From<ConstraintError> for String {
    fn from(err: ConstraintError) -> Self { format!("{:?}", err) }
}