1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// ═══════════════════════════════════════════════════════════════
// RuniqueUser — Contrat pour tout modèle utilisateur
// ═══════════════════════════════════════════════════════════════
//
// Implémentation minimale requise :
//
// impl RuniqueUser for MyUserModel {
// fn user_id(&self) -> i32 { self.id }
// fn username(&self) -> &str { &self.username }
// fn password_hash(&self) -> &str { &self.password }
// fn is_active(&self) -> bool { self.is_active }
// fn is_staff(&self) -> bool { self.is_staff }
// fn is_superuser(&self) -> bool { self.is_superuser }
// }
// ═══════════════════════════════════════════════════════════════