- Implemented `toString()`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-11-23 09:26:20 +02:00
parent d9b95dac5f
commit 1d8c0044a8
1 changed files with 6 additions and 0 deletions

View File

@ -172,6 +172,12 @@ public struct User
// Unlock
this.lock.unlock();
}
public string toString()
{
import std.conv : to;
return "User [username: "~getUsername()~", status: "~to!(string)(getStatus())~"]";
}
}