pub struct ResourceField {
pub mount: Ident,
pub ty: Type,
pub source: ResourceSource,
pub teardown: bool,
}Expand description
ONE resource field of a graph root, validated and ready to emit.
PLAIN, for the reason every model in this crate has plain fields: the derive today and a manifest front end later build the same thing and reach the same emitter.
Fields§
§mount: IdentThe mount — the field’s own identifier, which is the document’s key and the name a refusal reports the resource under.
ty: TypeThe declared type. The field spells the THING, so this is the resource itself and its options are reached through the contract.
source: ResourceSourceThe ONE source its declaration named.
teardown: boolWhether the field wrote teardown — the goodbye opt-in, which COMPOSES with either factory
form.
It is a second axis rather than a fourth source, and it has to be: where the options come from and whether the built value has something to say on the way out are unrelated questions, and folding them into one enum would give the grammar a spelling per pair.