pub fn declaration(
kind: Kind,
annotations: &BTreeMap<String, Value>,
ty: Option<&TypeView<'_>>,
attachment: Option<&TypeView<'_>>,
) -> DeclarationExpand description
Reads the declaration of a resource of kind from its resolved
annotations (core §9.3), its type and its attachment’s type (§2.2,
§2.4). ty is None for an operation, which has no payload type.