Struct rustful::router::Endpoint [] [src]

pub struct Endpoint<'a, T: 'a> {
    pub handler: Option<&'a T>,
    pub variables: HashMap<MaybeUtf8OwnedMaybeUtf8Owned>,
    pub hyperlinks: Vec<Link<'a>>,
}

API endpoint data.

Fields

handler: Option<&'a T>

A request handler, if found.

variables: HashMap<MaybeUtf8OwnedMaybeUtf8Owned>

Path variables for the matching endpoint. May be empty, depending on the router implementation.

hyperlinks: Vec<Link<'a>>

Any associated hyperlinks.

Trait Implementations

impl<'a, T> From<Option<&'a T>> for Endpoint<'a, T>
[src]

fn from(handler: Option<&'a T>) -> Endpoint<'a, T>

Performs the conversion.