pub struct RouteRule {
pub prefix: String,
pub source: String,
pub settings: BTreeMap<String, Value>,
}Expand description
One [[route]] block.
Fields§
§prefix: StringPath prefix. The router matches by longest prefix; ties go to declaration order (resolved in P5.3).
source: StringSource name to dispatch to.
settings: BTreeMap<String, Value>Source-specific extras (e.g. mount, vault). Stored
verbatim.
Trait Implementations§
impl StructuralPartialEq for RouteRule
Auto Trait Implementations§
impl Freeze for RouteRule
impl RefUnwindSafe for RouteRule
impl Send for RouteRule
impl Sync for RouteRule
impl Unpin for RouteRule
impl UnsafeUnpin for RouteRule
impl UnwindSafe for RouteRule
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