pub struct ModuleDescriptor {
pub id: ModuleId,
pub title: String,
pub description: String,
pub stability: Stability,
pub capabilities: Vec<Executable>,
}Expand description
One module: its identity, what it is for, and the executables it composes. The module stamps its id on every capability it carries, and the registry refuses a capability whose id namespace is not its module.
Fields§
§id: ModuleIdThe identity, [a-z][a-z0-9_-]*; the namespace of every capability in it.
title: StringThe short name.
description: StringOne paragraph.
stability: StabilityWhere the module stands, as a whole.
capabilities: Vec<Executable>The executables, each already stamped with the module id.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ModuleDescriptor
impl !UnwindSafe for ModuleDescriptor
impl Freeze for ModuleDescriptor
impl Send for ModuleDescriptor
impl Sync for ModuleDescriptor
impl Unpin for ModuleDescriptor
impl UnsafeUnpin for ModuleDescriptor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more