pub struct CompileTimeModuleMetadata {
pub name: String,
pub controllers: Vec<String>,
pub providers: Vec<String>,
pub imports: Vec<String>,
pub exports: Vec<String>,
}
Expand description
Metadata about a single module discovered at compile time
Fields§
§name: String
Name of the module type
controllers: Vec<String>
List of controller types in this module
providers: Vec<String>
List of provider types in this module
imports: Vec<String>
List of imported modules
exports: Vec<String>
List of exported providers
Implementations§
Source§impl CompileTimeModuleMetadata
impl CompileTimeModuleMetadata
Sourcepub fn with_controller(self, controller: String) -> Self
pub fn with_controller(self, controller: String) -> Self
Add a controller to this module
Sourcepub fn with_controllers(self, controllers: Vec<String>) -> Self
pub fn with_controllers(self, controllers: Vec<String>) -> Self
Add multiple controllers to this module
Sourcepub fn with_provider(self, provider: String) -> Self
pub fn with_provider(self, provider: String) -> Self
Add a provider to this module
Sourcepub fn with_providers(self, providers: Vec<String>) -> Self
pub fn with_providers(self, providers: Vec<String>) -> Self
Add multiple providers to this module
Sourcepub fn with_import(self, import: String) -> Self
pub fn with_import(self, import: String) -> Self
Add an import to this module
Sourcepub fn with_imports(self, imports: Vec<String>) -> Self
pub fn with_imports(self, imports: Vec<String>) -> Self
Add multiple imports to this module
Sourcepub fn with_export(self, export: String) -> Self
pub fn with_export(self, export: String) -> Self
Add an export to this module
Sourcepub fn with_exports(self, exports: Vec<String>) -> Self
pub fn with_exports(self, exports: Vec<String>) -> Self
Add multiple exports to this module
Trait Implementations§
Source§impl Clone for CompileTimeModuleMetadata
impl Clone for CompileTimeModuleMetadata
Source§fn clone(&self) -> CompileTimeModuleMetadata
fn clone(&self) -> CompileTimeModuleMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CompileTimeModuleMetadata
impl Debug for CompileTimeModuleMetadata
impl StructuralPartialEq for CompileTimeModuleMetadata
Auto Trait Implementations§
impl Freeze for CompileTimeModuleMetadata
impl RefUnwindSafe for CompileTimeModuleMetadata
impl Send for CompileTimeModuleMetadata
impl Sync for CompileTimeModuleMetadata
impl Unpin for CompileTimeModuleMetadata
impl UnwindSafe for CompileTimeModuleMetadata
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