summaryrefslogtreecommitdiff
path: root/src/user.rs
blob: fb4adc7f2bba86efb02348e2209009a2807063f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::fmt;
use std::fmt::Formatter;

pub struct User {
    pub id: u64,
    pub name: String,
    pub token: String,
    pub chat_id: u64,
}

impl fmt::Display for User {
    fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
        write!(f, "User {{ id={}, name={}, token={}, chat_id={} }}",
               self.id, self.name, self.token, self.chat_id)
    }
}