pub struct ControllerMetadata {
pub name: String,
pub base_path: String,
pub routes: Vec<RouteMetadata>,
pub middleware: Vec<String>,
pub dependencies: Vec<String>,
}
Expand description
Enhanced controller metadata for auto-registration
Fields§
§name: String
Controller name (type name)
base_path: String
Base path for all routes in this controller
routes: Vec<RouteMetadata>
All routes defined in this controller
middleware: Vec<String>
Middleware applied to all controller routes
dependencies: Vec<String>
Dependencies this controller needs from IoC container
Trait Implementations§
Source§impl Clone for ControllerMetadata
impl Clone for ControllerMetadata
Source§fn clone(&self) -> ControllerMetadata
fn clone(&self) -> ControllerMetadata
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 moreAuto Trait Implementations§
impl Freeze for ControllerMetadata
impl RefUnwindSafe for ControllerMetadata
impl Send for ControllerMetadata
impl Sync for ControllerMetadata
impl Unpin for ControllerMetadata
impl UnwindSafe for ControllerMetadata
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