pub struct RouteCompilerBuilder { /* private fields */ }
Expand description
Builder for creating route compilers with fluent API
Implementations§
Source§impl RouteCompilerBuilder
impl RouteCompilerBuilder
Sourcepub fn config(self, config: CompilerConfig) -> Self
pub fn config(self, config: CompilerConfig) -> Self
Set compiler configuration
Sourcepub fn detect_conflicts(self, enabled: bool) -> Self
pub fn detect_conflicts(self, enabled: bool) -> Self
Enable or disable conflict detection
Sourcepub fn max_routes_warning(self, max: usize) -> Self
pub fn max_routes_warning(self, max: usize) -> Self
Set maximum routes warning threshold
Sourcepub fn route(self, route: CompilableRoute) -> Self
pub fn route(self, route: CompilableRoute) -> Self
Add a route
Sourcepub fn build(self) -> Result<CompilationResult, CompilationError>
pub fn build(self) -> Result<CompilationResult, CompilationError>
Build and compile the routes
Trait Implementations§
Source§impl Debug for RouteCompilerBuilder
impl Debug for RouteCompilerBuilder
Auto Trait Implementations§
impl Freeze for RouteCompilerBuilder
impl RefUnwindSafe for RouteCompilerBuilder
impl Send for RouteCompilerBuilder
impl Sync for RouteCompilerBuilder
impl Unpin for RouteCompilerBuilder
impl UnwindSafe for RouteCompilerBuilder
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