parse_profile_config

Function parse_profile_config 

Source
pub fn parse_profile_config(
    content: &[u8],
    config_type: &str,
    index: u32,
) -> Result<BambuProfileConfig>
Expand description

Parse a per-profile config JSON file (filament_settings_N.config, etc.).

Extracts inherits and name fields; everything else (minus gcode blobs) goes into extras.

  • config_type: “filament”, “machine”, or “process”
  • index: the N in the filename