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

Function serialize_refresh_strategy

crates/openshell-providers/src/profiles.rs:592–600  ·  view source on GitHub ↗
(
    strategy: &ProviderCredentialRefreshStrategy,
    serializer: S,
)

Source from the content-addressed store, hash-verified

590
591#[allow(clippy::trivially_copy_pass_by_ref)]
592fn serialize_refresh_strategy<S>(
593 strategy: &ProviderCredentialRefreshStrategy,
594 serializer: S,
595) -> Result<S::Ok, S::Error>
596where
597 S: Serializer,
598{
599 serializer.serialize_str(provider_refresh_strategy_to_yaml(*strategy))
600}
601
602#[must_use]
603pub fn provider_profile_category_from_yaml(raw: &str) -> Option<ProviderProfileCategory> {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected