chore: update to latest shuttle
This commit is contained in:
@@ -8,4 +8,4 @@ name = "entity"
|
||||
path = "src/lib.rs"
|
||||
|
||||
[dependencies]
|
||||
sea-orm = "0.11.3"
|
||||
sea-orm = "0.12.12"
|
||||
|
||||
@@ -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(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user