prost_validate/errors/any.rs
1use thiserror::Error;
2
3#[derive(Debug, Clone, Error)]
4pub enum Error {
5 #[error("required")]
6 Required,
7 #[error("type_url must be in {0:?}")]
8 In(Vec<String>),
9 #[error("type_url must not be in {0:?}")]
10 NotIn(Vec<String>),
11}
12
13impl From<Error> for super::Error {
14 fn from(value: Error) -> Self {
15 Self::Any(value)
16 }
17}