Struct ntex_router::ResourceDef [−][src]
pub struct ResourceDef { /* fields omitted */ }Expand description
ResourceDef describes an entry in resources table
Resource definition can contain only 16 dynamic segments
Implementations
Parse path pattern and create new ResourceDef instance.
Path segments are separatted by /. Pattern must start
with segment separator. Static segments could be
case insensitive.
Panics if path pattern is malformed.
Parse path pattern and create new ResourceDef instance.
Use prefix type instead of static.
Panics if path regex pattern is malformed.
Parse path pattern and create new ResourceDef instance.
Inserts / to the start of the pattern.
Panics if path regex pattern is malformed.
Build resource path from elements. Returns true on success.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ResourceDefimpl Send for ResourceDefimpl Sync for ResourceDefimpl Unpin for ResourceDefimpl UnwindSafe for ResourceDefBlanket Implementations
Mutably borrows from an owned value. Read more