Struct seamless::api::RouteInfo [−][src]
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: ApiBodyInfo
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,
though the type information is somewhat related to what the possible types that can
be sent and received via JSON.
Types can use the crate::ApiBody
macro, or implement crate::api::ApiBody
manually in order to describe the shape and documentation that they should hand back.
response_type: ApiBodyInfo
The shape of the data that is returned from this API route.
Trait Implementations
impl Clone for RouteInfo
[src]
impl Debug for RouteInfo
[src]
impl PartialEq<RouteInfo> for RouteInfo
[src]
impl Serialize for RouteInfo
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for RouteInfo
[src]
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>,