[−][src]Struct seamless::router::RouteInfo
Information about a single route.
Fields
name: String
The name/path that the http::Request
needs to contain
in order to match this route.
method: String
The HTTP method expected in order for a http::Request
to
match this route, as a string.
description: String
The description of the route as set by RouteBuilder::description()
request_type: ApiBodyType
The shape of the data expected to be provided as part of the http::Request
for this route. This doesn't care about the wire format that the data is provided in
(be is JSON or other).
If the handler function for the route asks for something of type Json<T>
, then
the data will be expected to be provided as JSON. However, it is up to the type that
implements Body
to decide on the expected wire format.
response_type: ApiBodyType
The shape of the data that is returned from this API route.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RouteInfo
[src]
impl Send for RouteInfo
[src]
impl Sync for RouteInfo
[src]
impl Unpin for RouteInfo
[src]
impl UnwindSafe for RouteInfo
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,