2022-11-01 21:54:39 +03:00
|
|
|
//! SeaORM Entity. Generated by sea-orm-codegen 0.10.1
|
2022-08-03 03:31:47 +03:00
|
|
|
|
|
|
|
use sea_orm::entity::prelude::*;
|
2022-08-05 22:47:50 +03:00
|
|
|
use serde::{Deserialize, Serialize};
|
2022-08-03 03:31:47 +03:00
|
|
|
|
2022-08-15 20:50:14 +03:00
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum, Serialize, Deserialize)]
|
2022-12-12 07:39:54 +03:00
|
|
|
#[sea_orm(rs_type = "String", db_type = "Enum", enum_name = "log_level")]
|
2022-12-12 22:00:15 +03:00
|
|
|
#[strum(serialize_all = "lowercase")]
|
2022-12-12 07:39:54 +03:00
|
|
|
pub enum LogLevel {
|
|
|
|
#[sea_orm(string_value = "none")]
|
|
|
|
None,
|
2022-12-12 22:00:15 +03:00
|
|
|
#[sea_orm(string_value = "aggregated")]
|
|
|
|
Aggregated,
|
2022-12-12 07:39:54 +03:00
|
|
|
#[sea_orm(string_value = "detailed")]
|
|
|
|
Detailed,
|
2022-08-03 03:31:47 +03:00
|
|
|
}
|
2022-12-12 07:39:54 +03:00
|
|
|
|
|
|
|
impl Default for LogLevel {
|
|
|
|
fn default() -> Self {
|
|
|
|
Self::None
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-24 03:14:35 +03:00
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum, Serialize, Deserialize)]
|
|
|
|
#[sea_orm(rs_type = "String", db_type = "Enum", enum_name = "method")]
|
|
|
|
pub enum Method {
|
|
|
|
#[sea_orm(string_value = "eth_call")]
|
|
|
|
EthCall,
|
|
|
|
#[sea_orm(string_value = "eth_estimateGas")]
|
|
|
|
EthEstimateGas,
|
|
|
|
#[sea_orm(string_value = "eth_sendRawTransaction")]
|
|
|
|
EthSendRawTransaction,
|
|
|
|
}
|
2022-12-12 07:39:54 +03:00
|
|
|
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum, Serialize, Deserialize)]
|
|
|
|
#[sea_orm(rs_type = "String", db_type = "Enum", enum_name = "role")]
|
|
|
|
pub enum Role {
|
|
|
|
#[sea_orm(string_value = "owner")]
|
|
|
|
Owner,
|
|
|
|
#[sea_orm(string_value = "admin")]
|
|
|
|
Admin,
|
|
|
|
#[sea_orm(string_value = "collaborator")]
|
|
|
|
Collaborator,
|
|
|
|
}
|