Skip to main content

import_snippet

Function import_snippet 

Source
pub fn import_snippet(
    state: &mut AppState,
    snippet: &str,
    provider_id_hint: Option<&str>,
    source_label: Option<&str>,
    layer: ConfigLayer,
    merge_mode: ImportMergeMode,
) -> Result<ImportSummary>
Expand description

Import a JSON/JSONC/TOML/YAML snippet into an app state layer.