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

Function profile_to_json

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

Source from the content-addressed store, hash-verified

986}
987
988pub fn profile_to_json(profile: &ProviderTypeProfile) -> Result<String, ProfileError> {
989 Ok(serde_json::to_string_pretty(profile)?)
990}
991
992pub fn profiles_to_yaml(profiles: &[ProviderTypeProfile]) -> Result<String, ProfileError> {
993 Ok(serde_yml::to_string(profiles)?)

Calls

no outgoing calls