use mongodb::topology::TopologyType; use super::server::Server; pub struct TopologyDescription { pub servers: Vec, pub ttype: TopologyType, } impl TopologyDescription { pub fn new(servers: Vec, ttype: TopologyType) -> TopologyDescription { TopologyDescription { servers: servers, ttype: ttype, } } }