pub fn parse_endpoint( rules: Pairs<'_, Rule>, ) -> Result<EndPointType, Box<dyn Error + Sync + Send>>