prost_validate/errors/
bool.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Debug, Clone, Error)]
pub enum Error {
    #[error("must be equal to {0}")]
    Const(bool),
}

impl From<Error> for super::Error {
    fn from(value: Error) -> Self {
        Self::Bool(value)
    }
}