1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// Copyright 2023 Zesty Tech Ltd. All rights reserved.
// Use is subject to license terms.
//

#![cfg_attr(feature = "pedantic", warn(clippy::pedantic))]
#![warn(clippy::use_self)]
#![warn(clippy::map_flatten)]
#![warn(clippy::map_unwrap_or)]
#![warn(deprecated_in_future)]
#![warn(future_incompatible)]
#![warn(noop_method_call)]
#![warn(unreachable_pub)]
#![warn(missing_debug_implementations)]
#![warn(rust_2018_compatibility)]
#![warn(rust_2021_compatibility)]
#![warn(rust_2018_idioms)]
#![warn(trivial_casts)]
#![warn(unused)]
#![deny(warnings)]

use serde::{Deserialize, Serialize};
use uuid::Uuid;

pub use location::{AwsRegion, AzureRegion, GcpRegion, InvalidRegion, Location};
pub use vendor::Vendor;

mod location;
mod vendor;

pub mod v0;

#[derive(Debug, Serialize, Deserialize)]
pub struct Error {
    #[serde(with = "http_serde::status_code")]
    pub status: http::StatusCode,
    pub message: String,
}