Skip to main content

etopay_api_types/api/
generic.rs

1use serde::{Deserialize, Serialize};
2
3/// Supported crypto currencies
4#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
5#[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))]
6pub enum ApiCryptoCurrency {
7    /// Iota Crypto Currency
8    Iota,
9    /// Ethereum Crypto Currency
10    Eth,
11}
12
13/// Struct for storing the commit hash from different services
14#[derive(Debug, Deserialize, Serialize, Clone, PartialEq)]
15#[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))]
16pub struct HealthResponse {
17    pub version: String,
18}