Qore Mapper Module Reference  1.4.1
Mapper::MapperRuntimeKeyInfo hashdecl Reference

describes a runtime type More...

Public Attributes

*hash< string, bool > conflicting_keys
 hash of conflicting keys, if any
 
code handler
 the code to handle the key at runtime More...
 
bool requires_input = False
 if the key requires in input field for the mapping
 
string value_type = "string"
 the type of value that must be assigned to this key
 

Detailed Description

describes a runtime type

Member Data Documentation

◆ handler

code Mapper::MapperRuntimeKeyInfo::handler

the code to handle the key at runtime

the signature of this closure or call reference depends on requires_input:

  • requires_input == True: auto sub (auto arg, auto val) {}
    • parameters:
      • arg: the argument to the runtime key in the mapping
      • val: the current value of the mapping, if any
  • requires_input == False: auto sub (auto arg) {}
    • parameters:
      • arg: the argument to the runtime key in the mapping

In both cases the return value is the value to use for the field