[−][src]Struct conjure_http::server::Endpoint
Information about an endpoint of a resource.
Methods
impl<T, B, R> Endpoint<T, B, R> where
R: VisitResponse,
[src]
R: VisitResponse,
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]
name: &'static str,
method: Method,
path: &'static str,
handler: Handler<T, B, R, R::Output>,
parameters: &'static [Parameter]
) -> Endpoint<T, B, R>
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,