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

Function serialize_category

crates/openshell-providers/src/profiles.rs:570–578  ·  view source on GitHub ↗
(
    category: &ProviderProfileCategory,
    serializer: S,
)

Source from the content-addressed store, hash-verified

568
569#[allow(clippy::trivially_copy_pass_by_ref)]
570fn serialize_category<S>(
571 category: &ProviderProfileCategory,
572 serializer: S,
573) -> Result<S::Ok, S::Error>
574where
575 S: Serializer,
576{
577 serializer.serialize_str(provider_profile_category_to_yaml(*category))
578}
579
580fn deserialize_refresh_strategy<'de, D>(
581 deserializer: D,

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected