enum_from_value

Function enum_from_value 

Source
pub fn enum_from_value(
    paths: &DirPaths,
    root_module: &mut Module,
    value: Value,
    name: String,
) -> Result<ModuleEnumWithU8, OcsfCodegenError>
Expand description

Insert a new enum into the target module’s scope