proxmox/src/request.rs
Wolfgang Bumiller aa23068293 import
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-03-09 13:07:59 +01:00

24 lines
533 B
Rust

use serde::Deserialize;
pub const JSON_CONTENT_TYPE: &str = "application/jose+json";
pub const CREATED: u16 = 201;
/// A request which should be performed on the ACME provider.
pub struct Request {
pub url: String,
pub method: &'static str,
pub content_type: &'static str,
pub body: String,
pub expected: u16,
}
#[derive(Clone, Debug, Deserialize)]
pub struct ErrorResponse {
#[serde(rename = "type")]
pub ty: String,
pub detail: Option<String>,
pub subproblems: Option<serde_json::Value>,
}