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

Function profile_to_yaml

crates/openshell-providers/src/profiles.rs:984–986  ·  view source on GitHub ↗
(profile: &ProviderTypeProfile)

Source from the content-addressed store, hash-verified

982}
983
984pub fn profile_to_yaml(profile: &ProviderTypeProfile) -> Result<String, ProfileError> {
985 Ok(serde_yml::to_string(profile)?)
986}
987
988pub fn profile_to_json(profile: &ProviderTypeProfile) -> Result<String, ProfileError> {
989 Ok(serde_json::to_string_pretty(profile)?)

Calls

no outgoing calls