pub struct RoutePut {
pub destination: Option<String>,
pub source: Option<String>,
pub type_: Option<RouteType>,
}Expand description
RoutePut
JSON schema
{
"type": "object",
"properties": {
"destination": {
"examples": [
"/foo/:bar"
],
"type": "string"
},
"source": {
"examples": [
"/:bar/foo"
],
"type": "string"
},
"type": {
"$ref": "#/components/schemas/routeType"
}
}
}Fields§
§destination: Option<String>§source: Option<String>§type_: Option<RouteType>Trait Implementations§
Source§impl<'de> Deserialize<'de> for RoutePut
impl<'de> Deserialize<'de> for RoutePut
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 RoutePut
impl RefUnwindSafe for RoutePut
impl Send for RoutePut
impl Sync for RoutePut
impl Unpin for RoutePut
impl UnsafeUnpin for RoutePut
impl UnwindSafe for RoutePut
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