aboutsummaryrefslogtreecommitdiffstats
path: root/src/student.rs
diff options
context:
space:
mode:
authorYigit Sever2022-04-23 11:04:52 +0300
committerYigit Sever2022-04-23 11:04:52 +0300
commit647967f271d356c3d309ab24ca96fd09f4c87829 (patch)
tree7955a4130a9611512ddabfb5d03af2287318aa56 /src/student.rs
parent981e340977477d52374458fa9d5a0ac7db62b971 (diff)
downloadgradecoin-647967f271d356c3d309ab24ca96fd09f4c87829.tar.gz
gradecoin-647967f271d356c3d309ab24ca96fd09f4c87829.tar.bz2
gradecoin-647967f271d356c3d309ab24ca96fd09f4c87829.zip
Add logging to coinbase rewards
Diffstat (limited to 'src/student.rs')
-rw-r--r--src/student.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/student.rs b/src/student.rs
index 2b9c5bd..b6d99cd 100644
--- a/src/student.rs
+++ b/src/student.rs
@@ -24,6 +24,12 @@ pub struct User {
24 pub is_bot: bool, 24 pub is_bot: bool,
25} 25}
26 26
27impl fmt::Display for User {
28 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
29 write!(f, "{}", self.user_id)
30 }
31}
32
27#[derive(Serialize, Deserialize, Debug, PartialEq, Clone)] 33#[derive(Serialize, Deserialize, Debug, PartialEq, Clone)]
28pub struct MetuId { 34pub struct MetuId {
29 id: Id, 35 id: Id,