[][src]Struct conjure_http::server::Metadata

pub struct Metadata { /* fields omitted */ }

Information about an endpoint of a resource.

Methods

impl Metadata[src]

pub const fn new(
    name: &'static str,
    method: Method,
    path: &'static str,
    parameters: &'static [Parameter],
    deprecated: bool
) -> Metadata
[src]

Creates a new metadata object.

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

Returns the endpoint's name.

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

Returns the endpoint's HTTP method.

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

Returns the endpoint's HTTP path template.

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

Returns the endpoint's parameters.

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

Returns if the endpoint is deprecated.

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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> Borrow<T> for T where
    T: ?Sized
[src]

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

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