pub struct CreateDomainRouteRequest {
pub name: String,
pub path_pattern: String,
pub path_type: DomainPathMatchType,
pub methods: Option<Vec<String>>,
pub upstream_id: Uuid,
pub strip_path: bool,
pub priority: i32,
pub add_headers: HashMap<String, String>,
pub remove_headers: Vec<String>,
pub rate_limit_requests: Option<i32>,
pub rate_limit_window_secs: Option<i32>,
pub timeout_secs: i32,
}Expand description
Create domain route request.
Fields§
§name: StringName, unique within the domain.
path_pattern: StringThe path to match. Defaults to /, which catches everything.
path_type: DomainPathMatchTypeHow to read the pattern. Defaults to prefix.
methods: Option<Vec<String>>Methods to match. Omit for any.
upstream_id: UuidThe upstream to forward to. Must belong to the same tenant.
strip_path: boolWhether to remove the matched prefix before forwarding.
priority: i32Higher is matched first.
add_headers: HashMap<String, String>Headers to add to the forwarded request.
remove_headers: Vec<String>Headers to remove from the forwarded request.
rate_limit_requests: Option<i32>Requests allowed per window. Set with the window or not at all.
rate_limit_window_secs: Option<i32>The window those requests are counted over, in seconds.
timeout_secs: i32Request timeout in seconds.
Trait Implementations§
Source§impl Clone for CreateDomainRouteRequest
impl Clone for CreateDomainRouteRequest
Source§impl Debug for CreateDomainRouteRequest
impl Debug for CreateDomainRouteRequest
Source§impl<'de> Deserialize<'de> for CreateDomainRouteRequest
impl<'de> Deserialize<'de> for CreateDomainRouteRequest
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 CreateDomainRouteRequest
impl RefUnwindSafe for CreateDomainRouteRequest
impl Send for CreateDomainRouteRequest
impl Sync for CreateDomainRouteRequest
impl Unpin for CreateDomainRouteRequest
impl UnsafeUnpin for CreateDomainRouteRequest
impl UnwindSafe for CreateDomainRouteRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more