pub struct RoutePost {
pub destination: Option<String>,
pub priority: Option<i64>,
pub source: Option<String>,
pub type_: Option<RouteType>,
}Expand description
RoutePost
JSON schema
{
"type": "object",
"properties": {
"destination": {
"examples": [
"/foo/:bar"
],
"type": "string"
},
"priority": {
"description": "Redirect and Rewrite Rules are applied in priority
order starting at 0. Defaults to last in the priority list.",
"type": "integer"
},
"source": {
"examples": [
"/:bar/foo"
],
"type": "string"
},
"type": {
"$ref": "#/components/schemas/routeType"
}
}
}Fields§
§destination: Option<String>§priority: Option<i64>Redirect and Rewrite Rules are applied in priority order starting at 0. Defaults to last in the priority list.
source: Option<String>§type_: Option<RouteType>Trait Implementations§
Source§impl<'de> Deserialize<'de> for RoutePost
impl<'de> Deserialize<'de> for RoutePost
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 RoutePost
impl RefUnwindSafe for RoutePost
impl Send for RoutePost
impl Sync for RoutePost
impl Unpin for RoutePost
impl UnsafeUnpin for RoutePost
impl UnwindSafe for RoutePost
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