chore: update to latest shuttle

This commit is contained in:
Suiranoil
2024-01-25 16:20:23 +03:00
parent c17c83982f
commit b9769bc972
6 changed files with 1405 additions and 579 deletions

View File

@@ -8,4 +8,4 @@ name = "entity"
path = "src/lib.rs"
[dependencies]
sea-orm = "0.11.3"
sea-orm = "0.12.12"

View File

@@ -1,3 +1,5 @@
use std::fmt::Display;
use sea_orm::entity::prelude::*;
#[derive(Debug, Clone, PartialEq, Eq, Hash, Copy, EnumIter, DeriveActiveEnum)]
@@ -33,3 +35,14 @@ impl From<&Role> for i32 {
}
}
}
impl Display for Role {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Role::Tank => f.write_str("tank")?,
Role::Dps => f.write_str("dps")?,
Role::Support => f.write_str("support")?,
};
Ok(())
}
}