more refactor
This commit is contained in:
16
src/bin/client/rsc.rs
Normal file
16
src/bin/client/rsc.rs
Normal file
@@ -0,0 +1,16 @@
|
||||
pub const CLIENT_DATA: &str = "client_data";
|
||||
|
||||
#[derive(bincode::Encode, bincode::Decode)]
|
||||
pub struct ClientData {
|
||||
pub ip: String,
|
||||
pub username: String,
|
||||
}
|
||||
|
||||
impl Default for ClientData {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
ip: "localhost:39420".to_string(),
|
||||
username: "your [NOVEMBER]".to_string(),
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user