Struct wick_config::v1::Route
source · pub struct Route {
pub sub_path: String,
pub operation: ComponentOperationExpression,
pub methods: Vec<HttpMethod>,
pub id: Option<String>,
pub description: Option<String>,
pub summary: Option<String>,
}Expand description
A route to serve and the operation that handles it.
Fields§
§sub_path: StringThe path to serve this route from. See URI documentation for more information on specifying query and path parameters.
operation: ComponentOperationExpressionThe operation that will act as the main entrypoint for this route.
methods: Vec<HttpMethod>The HTTP methods to serve this route for.
id: Option<String>The unique ID of the route, used for documentation and tooling.
description: Option<String>A short description of the route.
summary: Option<String>A longer description of the route.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Route
impl<'de> Deserialize<'de> for Route
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
source§impl PartialEq<Route> for Route
impl PartialEq<Route> for Route
impl StructuralPartialEq for Route
Auto Trait Implementations§
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnwindSafe for Route
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