Skip to main content

NewModuleFace

Struct NewModuleFace 

Source
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 str

New module directory and file name, and the face’s identity path segment. 新模块的目录与文件名,同时是该注册面身份路径的一段。

§kind: &'a str

Face kind name, for example Button. 注册面种类名,例如 Button。

§preset: &'a str

Preset type path that constructs this face. 构造本注册面的 preset 类型路径。

§parts: &'a str

Parts type path that supplies this face’s construction parts. 提供本注册面构造 parts 的 parts 类型路径。

§name_zh: &'a str

Localized display name, Chinese half. 本地化显示名称的中文部分。

§name_en: &'a str

Localized display name, English half. 本地化显示名称的英文部分。

§summary_zh: &'a str

Localized one-line description, Chinese half. 本地化单行描述的中文部分。

§summary_en: &'a str

Localized one-line description, English half. 本地化单行描述的英文部分。

§exports: &'a str

Export names this face declares, as manifest text. 本注册面声明的导出名称,以清单文本给出。

§stable_name: &'a str

Optional author-owned identity that survives source moves; empty means none. 可选的作者逻辑身份,可跨源码移动保持不变;为空表示没有。

§parent: NodeId

Node identity of the face this one registers under. 本注册面所挂载到的父节点身份。

§needs_registry: bool

Whether this face owns a child Registry. 本注册面是否拥有一个子注册机。

§getting_from_other_registry: &'a str

External registry this face is provisioned from; empty means none. 本注册面从其获取内容的外部注册机;为空表示没有。

§registration_rule: &'a str

Rule for faces entering the Registry this face owns. 进入本注册面所拥有 Registry 的注册规范。

§admission: &'a str

External dependency gate for this face’s registry. 本注册面所属注册机对外部依赖的门禁。

§handle_traits: &'a str

Interface names declared by the handle type. handle 类型声明实现的接口名称。

§handle_contracts: &'a str

Contract types the handle type must implement. handle 类型必须实现的合同类型。

§part_traits: &'a str

Interface names declared by the parts type. parts 类型声明实现的接口名称。

§part_contracts: &'a str

Contract types the parts type must implement. parts 类型必须实现的合同类型。

§requires: &'a str

Capability requirements this face declares. 本注册面声明的能力需求。

§provides: &'a str

Capability names this face makes available to other faces. 本注册面向其他注册面提供的能力名称。

§runtime_checks: &'a str

Runtime value checks the host applies; empty accepts any value. 宿主执行的运行期取值校验;为空时接受任何取值。

§flow: &'a str

Explicit flow contract for grafting; empty selects the default. 供嫁接使用的显式数据流合同;为空时选用默认值。

§flow_provider: &'a str

Type that supplies the compile-time flow contract, when explicit. 显式提供编译期数据流合同的类型路径(如果显式给出)。

Trait Implementations§

Source§

impl<'a> Clone for NewModuleFace<'a>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Copy for NewModuleFace<'a>

Source§

impl<'a> Debug for NewModuleFace<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for NewModuleFace<'a>

§

impl<'a> RefUnwindSafe for NewModuleFace<'a>

§

impl<'a> Send for NewModuleFace<'a>

§

impl<'a> Sync for NewModuleFace<'a>

§

impl<'a> Unpin for NewModuleFace<'a>

§

impl<'a> UnsafeUnpin for NewModuleFace<'a>

§

impl<'a> UnwindSafe for NewModuleFace<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.