[][src]Struct conjure_http::server::Endpoint

pub struct Endpoint<T, B, R> where
    R: VisitResponse
{ /* fields omitted */ }

Information about an endpoint of a resource.

Methods

impl<T, B, R> Endpoint<T, B, R> where
    R: VisitResponse
[src]

pub fn new(
    name: &'static str,
    method: Method,
    path: &'static str,
    handler: Handler<T, B, R, R::Output>,
    parameters: &'static [Parameter]
) -> Endpoint<T, B, R>
[src]

Creates a new endpoint.

pub fn with_deprecated(self, deprecated: bool) -> Endpoint<T, B, R>[src]

Sets the deprecation of the endpoint.

pub fn name(&self) -> &'static str[src]

Returns the endpoint's name.

pub fn method(&self) -> &Method[src]

Returns the endpoint's HTTP method.

pub fn path(&self) -> &'static str[src]

Returns the endpoint's HTTP path template.

pub fn handler(&self) -> Handler<T, B, R, R::Output>[src]

Returns the endpoint's handler function pointer.

pub fn parameters(&self) -> &'static [Parameter][src]

Returns the endpoint's parameters.

pub fn deprecated(&self) -> bool[src]

Returns if the endpoint is deprecated.

Auto Trait Implementations

impl<T, B, R> Sync for Endpoint<T, B, R>

impl<T, B, R> Send for Endpoint<T, B, R>

impl<T, B, R> Unpin for Endpoint<T, B, R>

impl<T, B, R> RefUnwindSafe for Endpoint<T, B, R>

impl<T, B, R> UnwindSafe for Endpoint<T, B, R>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]