Skip to main content

set_feature_flag

Function set_feature_flag 

Source
pub fn set_feature_flag(
    flag: FeatureFlag,
    enabled: bool,
    expected: FileVersion,
) -> Result<FileSaveOutcome, ConfigEditError>
Expand description

Changes one root setting while preserving other settings, comments and conflict protection.

§Errors

Returns the settings editor’s read, validation or write error. Concurrent edits return a conflict.