43 lines
1.3 KiB
Rust
43 lines
1.3 KiB
Rust
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.10.5
|
|
|
|
use sea_orm::entity::prelude::*;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum, Serialize, Deserialize)]
|
|
#[sea_orm(rs_type = "String", db_type = "Enum", enum_name = "log_level")]
|
|
pub enum LogLevel {
|
|
#[sea_orm(string_value = "none")]
|
|
None,
|
|
#[sea_orm(string_value = "aggregated")]
|
|
Aggregated,
|
|
#[sea_orm(string_value = "detailed")]
|
|
Detailed,
|
|
}
|
|
|
|
impl Default for LogLevel {
|
|
fn default() -> Self {
|
|
Self::None
|
|
}
|
|
}
|
|
|
|
#[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,
|
|
}
|
|
#[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,
|
|
}
|