pub struct ModuleRef {
pub name: &'static str,
pub register: fn(&Container) -> Result<()>,
pub controllers: fn() -> Vec<Router<Container>>,
pub imports: fn() -> Vec<ModuleRef>,
pub exports: fn() -> Vec<&'static str>,
pub is_global: fn() -> bool,
}Fields§
§name: &'static str§register: fn(&Container) -> Result<()>§controllers: fn() -> Vec<Router<Container>>§imports: fn() -> Vec<ModuleRef>§exports: fn() -> Vec<&'static str>§is_global: fn() -> boolImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModuleRef
impl RefUnwindSafe for ModuleRef
impl Send for ModuleRef
impl Sync for ModuleRef
impl Unpin for ModuleRef
impl UnsafeUnpin for ModuleRef
impl UnwindSafe for ModuleRef
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