Struct google_compute1::api::HttpFaultInjection
source · pub struct HttpFaultInjection {
pub abort: Option<HttpFaultAbort>,
pub delay: Option<HttpFaultDelay>,
}
Expand description
The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by the load balancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the load balancer for a percentage of requests.
This type is not used in any activity, and only used as part of another schema.
Fields§
§abort: Option<HttpFaultAbort>
The specification for how client requests are aborted as part of fault injection.
delay: Option<HttpFaultDelay>
The specification for how client requests are delayed as part of fault injection, before being sent to a backend service.
Trait Implementations§
source§impl Clone for HttpFaultInjection
impl Clone for HttpFaultInjection
source§fn clone(&self) -> HttpFaultInjection
fn clone(&self) -> HttpFaultInjection
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 HttpFaultInjection
impl Debug for HttpFaultInjection
source§impl Default for HttpFaultInjection
impl Default for HttpFaultInjection
source§fn default() -> HttpFaultInjection
fn default() -> HttpFaultInjection
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for HttpFaultInjection
impl<'de> Deserialize<'de> for HttpFaultInjection
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 Serialize for HttpFaultInjection
impl Serialize for HttpFaultInjection
impl Part for HttpFaultInjection
Auto Trait Implementations§
impl RefUnwindSafe for HttpFaultInjection
impl Send for HttpFaultInjection
impl Sync for HttpFaultInjection
impl Unpin for HttpFaultInjection
impl UnwindSafe for HttpFaultInjection
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