pub struct NewModuleFace<'a> {Show 24 fields
pub module: &'a str,
pub kind: &'a str,
pub preset: &'a str,
pub parts: &'a str,
pub name_zh: &'a str,
pub name_en: &'a str,
pub summary_zh: &'a str,
pub summary_en: &'a str,
pub exports: &'a str,
pub stable_name: &'a str,
pub parent: NodeId,
pub needs_registry: bool,
pub getting_from_other_registry: &'a str,
pub registration_rule: &'a str,
pub admission: &'a str,
pub handle_traits: &'a str,
pub handle_contracts: &'a str,
pub part_traits: &'a str,
pub part_contracts: &'a str,
pub requires: &'a str,
pub provides: &'a str,
pub runtime_checks: &'a str,
pub flow: &'a str,
pub flow_provider: &'a str,
}Expand description
The complete field set for creating one module registration face. 创建一个模块注册面所需的完整字段集合。
Fields§
§module: &'a strNew module directory and file name, and the face’s identity path segment. 新模块的目录与文件名,同时是该注册面身份路径的一段。
kind: &'a strFace kind name, for example Button.
注册面种类名,例如 Button。
preset: &'a strPreset type path that constructs this face. 构造本注册面的 preset 类型路径。
parts: &'a strParts type path that supplies this face’s construction parts. 提供本注册面构造 parts 的 parts 类型路径。
name_zh: &'a strLocalized display name, Chinese half. 本地化显示名称的中文部分。
name_en: &'a strLocalized display name, English half. 本地化显示名称的英文部分。
summary_zh: &'a strLocalized one-line description, Chinese half. 本地化单行描述的中文部分。
summary_en: &'a strLocalized one-line description, English half. 本地化单行描述的英文部分。
exports: &'a strExport names this face declares, as manifest text. 本注册面声明的导出名称,以清单文本给出。
stable_name: &'a strOptional author-owned identity that survives source moves; empty means none. 可选的作者逻辑身份,可跨源码移动保持不变;为空表示没有。
parent: NodeIdNode identity of the face this one registers under. 本注册面所挂载到的父节点身份。
needs_registry: boolWhether this face owns a child Registry. 本注册面是否拥有一个子注册机。
getting_from_other_registry: &'a strExternal registry this face is provisioned from; empty means none. 本注册面从其获取内容的外部注册机;为空表示没有。
registration_rule: &'a strRule for faces entering the Registry this face owns. 进入本注册面所拥有 Registry 的注册规范。
admission: &'a strExternal dependency gate for this face’s registry. 本注册面所属注册机对外部依赖的门禁。
handle_traits: &'a strInterface names declared by the handle type. handle 类型声明实现的接口名称。
handle_contracts: &'a strContract types the handle type must implement. handle 类型必须实现的合同类型。
part_traits: &'a strInterface names declared by the parts type. parts 类型声明实现的接口名称。
part_contracts: &'a strContract types the parts type must implement. parts 类型必须实现的合同类型。
requires: &'a strCapability requirements this face declares. 本注册面声明的能力需求。
provides: &'a strCapability names this face makes available to other faces. 本注册面向其他注册面提供的能力名称。
runtime_checks: &'a strRuntime value checks the host applies; empty accepts any value. 宿主执行的运行期取值校验;为空时接受任何取值。
flow: &'a strExplicit flow contract for grafting; empty selects the default. 供嫁接使用的显式数据流合同;为空时选用默认值。
flow_provider: &'a strType that supplies the compile-time flow contract, when explicit. 显式提供编译期数据流合同的类型路径(如果显式给出)。