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
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct HttpErrorOut {
    pub code: String,
    pub detail: String,
}

impl HttpErrorOut {
    pub fn new(code: String, detail: String) -> HttpErrorOut {
        HttpErrorOut { code, detail }
    }
}