temp fix for struct values

This commit is contained in:
Mitchell 2020-05-16 18:07:09 +00:00
parent da5df01a95
commit 2e1d4d3b40
1 changed files with 9 additions and 9 deletions

View File

@ -1,19 +1,19 @@
pub struct Client{ pub struct Client{
uuid: String, pub uuid: String,
username: String, pub username: String,
address: String, pub address: String,
} }
impl Client{ impl Client{
pub fn get_uuid(&self) -> String{ pub fn get_uuid(&self) -> &String{
self.uuid &self.uuid
} }
pub fn get_username(&self) -> String{ pub fn get_username(&self) -> &String{
self.username &self.username
} }
pub fn get_addres(&self) -> String{ pub fn get_addres(&self) -> &String{
self.address &self.address
} }
} }