pub struct NamespaceMetadata {
pub module_path: &'static str,
pub prefix: &'static str,
}Expand description
Namespace metadata registered by the #[rorpc::namespace("/prefix")] attribute macro.
Applied to modules to automatically prefix all handler routes within that module. One instance is created per annotated module and registered globally at link time.
Fields§
§module_path: &'static strRust module path where the namespace was declared (e.g. "crate::handlers::planet")
prefix: &'static strHTTP path prefix to prepend to all handlers in this module (e.g. "/planet")
Trait Implementations§
impl Collect for NamespaceMetadata
Auto Trait Implementations§
impl Forget for NamespaceMetadata
impl Freeze for NamespaceMetadata
impl RefUnwindSafe for NamespaceMetadata
impl Send for NamespaceMetadata
impl Sync for NamespaceMetadata
impl Unpin for NamespaceMetadata
impl UnsafeUnpin for NamespaceMetadata
impl UnwindSafe for NamespaceMetadata
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