pub fn find_mock_server_by_id<R>(&self, id: &String, f: &dyn Fn(&MockServer) -> R) -> Option<R> {
        match self.mock_servers.get(id) {
            Some(mock_server) => Some(f(mock_server)),
            None => None
        }
    }
/// Find mock server by id, and map it using supplied function if found
Find mock server by id, and map it using supplied function if found
Find mock server by id and map it using supplied function if found
pub fn find_mock_server_by_id<R>(&self, id: &String, f: &dyn Fn(&MockServer) -> R) -> Option<R> {
        match self.mock_servers.get(id) {
            Some(mock_server) => Some(f(mock_server)),
            None => None
        }
    }
pub fn find_mock_server_by_id < R > ( & self , id : & String , f : & dyn Fn ( & MockServer ) -> R ) -> Option < R > { match self . mock_servers . get ( id ) { Some ( mock_server ) => Some ( f ( mock_server ) ) , None => None } }
Find mock server by id, and map it using supplied function if found
Find mock server by id and map it using supplied function if found
&self
id
&String
f
&dyn Fn(&MockServer) -> R
&self
id
&String
f
&dyn Fn(&MockServer) -> R