pub struct Function {
pub id: String,
pub kind: FunctionKind,
pub receiver: Option<ReceiverCategory>,
pub params: Vec<Param>,
pub unbounded: bool,
pub keyword_args: bool,
pub contextual_domain: Option<ContextualDomain>,
pub context: Option<FunctionContext>,
pub catalog_id: Option<String>,
pub catalog_link: CatalogLink,
pub evidence: Vec<String>,
}Expand description
One builtin function entry (generic action/value or member function).
Fields§
§id: String§kind: FunctionKind§receiver: Option<ReceiverCategory>The receiver category of member functions.
params: Vec<Param>§unbounded: boolWhether the argument count is unbounded (.format placeholders).
keyword_args: boolWhether keyword arguments are accepted (name = expr). Defaults to
true (the reference’s parseArgs applies to every workshop
function); entries the reference routes around that mechanism
(range, random.*, .format) declare "keywordArgs": false
(issue #110).
contextual_domain: Option<ContextualDomain>The contextual enum-domain dispatch (the chase form), when this
entry has one.
context: Option<FunctionContext>§catalog_id: Option<String>The canonical Workshop catalog id this entry emits through; absent when emission is special-cased or not yet catalog-covered.
catalog_link: CatalogLinkThe explicit reason a source-level function has no direct catalog id.
evidence: Vec<String>The probe ids that validate this entry against the pinned oracle.