Struct spacegate_kernel::config::http_route_dto::SgHttpRouteRule
source · pub struct SgHttpRouteRule {
pub matches: Option<Vec<SgHttpRouteMatch>>,
pub filters: Option<Vec<SgRouteFilter>>,
pub backends: Option<Vec<SgBackendRef>>,
pub timeout_ms: Option<u64>,
}Expand description
HTTPRouteRule defines semantics for matching an HTTP request based on conditions (matches), processing it (filters), and forwarding the request to an API object
Fields§
§matches: Option<Vec<SgHttpRouteMatch>>Matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if any one of the matches is satisfied.
filters: Option<Vec<SgRouteFilter>>Filters define the filters that are applied to requests that match this rule.
backends: Option<Vec<SgBackendRef>>BackendRefs defines the backend(s) where matching requests should be sent.
timeout_ms: Option<u64>Timeout define the timeout for requests that match this rule.
Trait Implementations§
source§impl Clone for SgHttpRouteRule
impl Clone for SgHttpRouteRule
source§fn clone(&self) -> SgHttpRouteRule
fn clone(&self) -> SgHttpRouteRule
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SgHttpRouteRule
impl Debug for SgHttpRouteRule
source§impl Default for SgHttpRouteRule
impl Default for SgHttpRouteRule
source§fn default() -> SgHttpRouteRule
fn default() -> SgHttpRouteRule
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SgHttpRouteRule
impl<'de> Deserialize<'de> for SgHttpRouteRule
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 RefUnwindSafe for SgHttpRouteRule
impl Send for SgHttpRouteRule
impl Sync for SgHttpRouteRule
impl Unpin for SgHttpRouteRule
impl UnwindSafe for SgHttpRouteRule
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