pub struct ModuleConfig {Show 16 fields
pub id: String,
pub dir: PathBuf,
pub manifest: PathBuf,
pub name: BTreeMap<String, String>,
pub depends: Vec<String>,
pub optional: bool,
pub enabled: bool,
pub protocol_package: Package,
pub protocol_source: SourceFile,
pub engine_package: Package,
pub engine_type: String,
pub ui_package: Option<Package>,
pub ui_sources: Vec<SourceFile>,
pub languages: Vec<String>,
pub pages: Vec<PageConfig>,
pub contributes: BTreeMap<String, Vec<String>>,
}Expand description
One module of the application.
Fields§
§id: String§dir: PathBuf§manifest: PathBuf§name: BTreeMap<String, String>§depends: Vec<String>§optional: bool§enabled: boolWhether an optional module runs before the application saved a choice.
protocol_package: Package§protocol_source: SourceFile§engine_package: Package§engine_type: StringRust path of the module engine type, which implements Default.
ui_package: Option<Package>§ui_sources: Vec<SourceFile>§languages: Vec<String>§pages: Vec<PageConfig>Pages the module adds to the shell’s page slots.
contributes: BTreeMap<String, Vec<String>>Slot id to the module’s components placed there, in order.
Trait Implementations§
Source§impl Clone for ModuleConfig
impl Clone for ModuleConfig
Auto Trait Implementations§
impl Freeze for ModuleConfig
impl RefUnwindSafe for ModuleConfig
impl Send for ModuleConfig
impl Sync for ModuleConfig
impl Unpin for ModuleConfig
impl UnsafeUnpin for ModuleConfig
impl UnwindSafe for ModuleConfig
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