Skip to main content

declaration

Function declaration 

Source
pub fn declaration(
    kind: Kind,
    annotations: &BTreeMap<String, Value>,
) -> Declaration
Expand description

Reads the declaration of a resource of kind from its resolved annotations (§2.2, §2.3): [defaults], then [defaults.<kind>], then its own, as the contract model merges them (core §9.3). The kind is read first, then each key alone. Another timing.<key> is W105’s and plays no part.