pub struct RouteConfig {
pub path: String,
pub method: String,
pub request: Option<RouteRequestConfig>,
pub response: RouteResponseConfig,
}
Expand description
Route configuration for custom HTTP routes
Fields§
§path: String
Route path
method: String
HTTP method
request: Option<RouteRequestConfig>
Request configuration
response: RouteResponseConfig
Response configuration
Trait Implementations§
Source§impl Clone for RouteConfig
impl Clone for RouteConfig
Source§fn clone(&self) -> RouteConfig
fn clone(&self) -> RouteConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RouteConfig
impl Debug for RouteConfig
Source§impl<'de> Deserialize<'de> for RouteConfig
impl<'de> Deserialize<'de> for RouteConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RouteConfig
impl RefUnwindSafe for RouteConfig
impl Send for RouteConfig
impl Sync for RouteConfig
impl Unpin for RouteConfig
impl UnwindSafe for RouteConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more