Crate uri_resources
source ·Expand description
§URI Routes Resources.
A sidecar library for detailing the specifics of how a URI should be constructed. Allows for a rudimentary check of path arguments, when/if they are required to build the resulting URI.
Structs§
- Represents a single part of of a URI path. Where arguments are optional, there are interfaces which allow this object to check if an argument is required by either this component, or entities that are related to it.
Enums§
Traits§
- The core functionality that is to be expected of some resource object. These methods assist in the work done by other traits in this library. Specifically by managing the the resource and it’s relatives.
- Allows resources to set their child and parent nodes.
- Composes an object into a path component, conditionally failing if the implemented instance does not meet the requirements set by it’s declaration.
- Resource can be ‘weighted’. This allows use in
uri_routes, after digestion to sort paths in the final required. order.