svix 2.0.0

Svix webhooks API client and webhook verification library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Deserialize, Serialize};

use super::ValidationError;

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct HttpValidationError {
    pub detail: Vec<ValidationError>,
}

impl HttpValidationError {
    pub fn new(detail: Vec<ValidationError>) -> HttpValidationError {
        HttpValidationError { detail }
    }
}