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

Function deserialize_refresh_strategy

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

Source from the content-addressed store, hash-verified

578}
579
580fn deserialize_refresh_strategy<'de, D>(
581 deserializer: D,
582) -> Result<ProviderCredentialRefreshStrategy, D::Error>
583where
584 D: Deserializer<'de>,
585{
586 let raw = String::deserialize(deserializer)?;
587 provider_refresh_strategy_from_yaml(&raw)
588 .ok_or_else(|| de::Error::custom(format!("unsupported provider refresh strategy: {raw}")))
589}
590
591#[allow(clippy::trivially_copy_pass_by_ref)]
592fn serialize_refresh_strategy<S>(

Callers

nothing calls this directly

Tested by

no test coverage detected