(deserializer: D)
| 558 | } |
| 559 | |
| 560 | fn deserialize_category<'de, D>(deserializer: D) -> Result<ProviderProfileCategory, D::Error> |
| 561 | where |
| 562 | D: Deserializer<'de>, |
| 563 | { |
| 564 | let raw = String::deserialize(deserializer)?; |
| 565 | provider_profile_category_from_yaml(&raw) |
| 566 | .ok_or_else(|| de::Error::custom(format!("unsupported provider profile category: {raw}"))) |
| 567 | } |
| 568 | |
| 569 | #[allow(clippy::trivially_copy_pass_by_ref)] |
| 570 | fn serialize_category<S>( |
nothing calls this directly
no test coverage detected