Convert configuration options to name-value pairs with values converted to strings. Note that this method will eventually be deprecated and replaced by [`options`]. [`options`]: Self::options
(&self)
| 497 | /// |
| 498 | /// [`options`]: Self::options |
| 499 | pub fn to_props(&self) -> HashMap<String, String> { |
| 500 | let mut map = HashMap::new(); |
| 501 | // copy configs from config_options |
| 502 | for entry in self.options.entries() { |
| 503 | map.insert(entry.key, entry.value.unwrap_or_default()); |
| 504 | } |
| 505 | |
| 506 | map |
| 507 | } |
| 508 | |
| 509 | /// Add extensions. |
| 510 | /// |