path

Macro path 

Source
path!() { /* proc-macro */ }
Expand description

Constructs a path with which one accesses a nested-in piece of data from config.

A path can be constructed by a sequence of keys, separated by ., i.e.

path!(<KEY>.<KEY>.<KEY>)

Every <KEY> can be either an index (access an array field) or a name (access a table field). The name may be quoted if it is not a valid identifier (e.g. contains -). The following are all valid keys:

  • key
  • "key"
  • "key-in-kebab-case"
  • 0