Skip to content

Commit 5ce7f87

Browse files
committed
editoast: authz: make Infra hashable
Signed-off-by: Leo Valais <leo.valais97@gmail.com>
1 parent 5f8c4f6 commit 5ce7f87

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

editoast/authz/src/model.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ pub struct User(pub i64);
9494
)]
9595
pub struct Group(pub i64);
9696

97-
#[derive(fga::Type, fga::User, fga::Object, derive_more::FromStr, Debug, Clone, Copy)]
97+
#[derive(
98+
fga::Type, fga::User, fga::Object, derive_more::FromStr, Debug, Clone, Copy, PartialEq, Eq, Hash,
99+
)]
98100
pub struct Infra(pub i64);
99101

100102
#[derive(Debug, Clone, Copy, Display, PartialEq, Eq, Hash, Serialize, Deserialize, ToSchema)]

0 commit comments

Comments
 (0)