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

Function parse_profile_json

crates/openshell-providers/src/profiles.rs:980–982  ·  view source on GitHub ↗
(input: &str)

Source from the content-addressed store, hash-verified

978}
979
980pub fn parse_profile_json(input: &str) -> Result<ProviderTypeProfile, ProfileError> {
981 Ok(serde_json::from_str::<ProviderTypeProfile>(input)?)
982}
983
984pub fn profile_to_yaml(profile: &ProviderTypeProfile) -> Result<String, ProfileError> {
985 Ok(serde_yml::to_string(profile)?)

Calls

no outgoing calls