prost_validate/errors/
message.rs

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

#[derive(Debug, Clone, Error)]
pub enum Error {
    #[error("required")]
    Required,
    #[error("{0}")]
    Message(Box<crate::Error>),
}

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