1
2
3
4
5
6
7
8
9
10
11
pub struct Client {
    host: String,
    port: u16,
    path: String
}

impl Client {
    pub fn new(host: String, port: u16, path: String) -> Self {
        Client { host, port, path }
    }
}