use mongors::*; use bsonrs::doc; fn main() { let client_pool = Mongo::new("mongodb://localhost:27017/").unwrap(); let client = client_pool.acquire_client(); let cmd = doc!{ "serverStatus": 1 }; let reply = client.command_simple("admin", cmd, None); println!("{:?}", reply); }