Module routable

Source
Expand description

§Routable

Structs§

RouteParseError
An error that occurs when parsing a route.
SiteMapSegment
A type erased map of the site structure.

Enums§

SegmentType
The type of a route segment.

Traits§

FromHashFragment
Something that can be created from an entire hash fragment. This must be implemented for any type that is used as a hash fragment like #[route("/#:hash_fragment")].
FromQuery
Something that can be created from an entire query string. This trait must be implemented for any type that is spread into the query segment like #[route("/?:..query")].
FromQueryArgument
Something that can be created from a query argument. This trait must be implemented for any type that is used as a query argument like #[route("/?:query")].
FromRouteSegment
Something that can be created from a single route segment. This must be implemented for any type that is used as a route segment like #[route("/:route_segment")].
FromRouteSegments
Something that can be created from multiple route segments. This must be implemented for any type that is spread into the route segment like #[route("/:..route_segments")].
Routable
The Routable trait is implemented for types that can be converted to and from a route and be rendered as a page.
ToRouteSegments
Something that can be converted into multiple route segments. This must be implemented for any type that is spread into the route segment like #[route("/:..route_segments")].