1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use crate::graph::RelationGraph; pub struct ServerConfig { pub port: u16, pub graph: RelationGraph, } impl ServerConfig { pub fn new(cupido_graph: RelationGraph) -> ServerConfig { return ServerConfig { port: 9410, graph: cupido_graph, }; } }