#[derive(Debug, Clone)]
pub struct NodeConfig {
pub host: String, pub port: u16, pub protocol: String, }
impl From<(String, u16, String)> for NodeConfig {
fn from((host, port, protocol): (String, u16, String)) -> Self {
Self {
host,
port,
protocol,
}
}
}