Struct rustful::router::Endpoint
[−]
[src]
pub struct Endpoint<'a, T: 'a> { pub handler: Option<&'a T>, pub variables: HashMap<MaybeUtf8Owned, MaybeUtf8Owned>, pub hyperlinks: Vec<Link<'a>>, }
API endpoint data.
Fields
handler: Option<&'a T>
A request handler, if found.
variables: HashMap<MaybeUtf8Owned, MaybeUtf8Owned>
Path variables for the matching endpoint. May be empty, depending on the router implementation.
hyperlinks: Vec<Link<'a>>
Any associated hyperlinks.