1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#[derive(Debug, Clone)] pub struct ProxyObj { pub protocols: String, pub ip_addr: String, pub port: i32, } impl ProxyObj { pub fn new(protocols: String, ip_addr: String, port: i32) -> Self { Self { protocols, ip_addr, port, } } }