MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / deserialize_category

Function deserialize_category

crates/openshell-providers/src/profiles.rs:560–567  ·  view source on GitHub ↗
(deserializer: D)

Source from the content-addressed store, hash-verified

558}
559
560fn deserialize_category<'de, D>(deserializer: D) -> Result<ProviderProfileCategory, D::Error>
561where
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)]
570fn serialize_category<S>(

Callers

nothing calls this directly

Tested by

no test coverage detected