pub struct RouteInput {
pub id: Option<String>,
pub path: String,
pub methods: Option<Vec<String>>,
pub enabled: Option<bool>,
pub ip_rules: Option<Vec<IpRule>>,
pub metadata: Option<Map<String, Value>>,
}Expand description
A route definition as written. Only the fields that are set travel: the node applies its own defaults to the rest.
Fields§
§id: Option<String>Optional on create. On PUT the path’s id wins.
path: StringThe capture pattern.
methods: Option<Vec<String>>Defaults to ["POST"].
enabled: Option<bool>Defaults to true.
ip_rules: Option<Vec<IpRule>>Defaults to [] (the global list applies).
metadata: Option<Map<String, Value>>Defaults to {}.
Trait Implementations§
Source§impl Clone for RouteInput
impl Clone for RouteInput
Source§impl Debug for RouteInput
impl Debug for RouteInput
Source§impl Default for RouteInput
impl Default for RouteInput
Source§impl<'de> Deserialize<'de> for RouteInput
impl<'de> Deserialize<'de> for RouteInput
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 for RouteInput
impl PartialEq for RouteInput
Source§impl Serialize for RouteInput
impl Serialize for RouteInput
impl StructuralPartialEq for RouteInput
Auto Trait Implementations§
impl Freeze for RouteInput
impl RefUnwindSafe for RouteInput
impl Send for RouteInput
impl Sync for RouteInput
impl Unpin for RouteInput
impl UnsafeUnpin for RouteInput
impl UnwindSafe for RouteInput
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