pub struct Route {
pub name: String,
pub namespace: String,
pub paths: Vec<String>,
pub methods: Vec<String>,
pub strip_path: bool,
pub preserve_host: bool,
pub service: Option<String>,
pub modules: Vec<String>,
pub tags: Vec<String>,
}Expand description
Route defines how requests are handled and forwarded
Fields§
§name: String§namespace: String§paths: Vec<String>§methods: Vec<String>§strip_path: bool§preserve_host: bool§service: Option<String>§modules: Vec<String>Implementations§
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
Auto Trait Implementations§
impl Freeze for Route
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