pub struct HttpRouteFaultInjectionPolicyAbort {
pub http_status: Option<i32>,
pub percentage: Option<i32>,
}Expand description
Specification of how client requests are aborted as part of fault injection before being sent to a destination.
This type is not used in any activity, and only used as part of another schema.
Fields§
§http_status: Option<i32>The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
percentage: Option<i32>The percentage of traffic which will be aborted. The value must be between [0, 100]
Trait Implementations§
Source§impl Clone for HttpRouteFaultInjectionPolicyAbort
impl Clone for HttpRouteFaultInjectionPolicyAbort
Source§fn clone(&self) -> HttpRouteFaultInjectionPolicyAbort
fn clone(&self) -> HttpRouteFaultInjectionPolicyAbort
Returns a duplicate 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 Default for HttpRouteFaultInjectionPolicyAbort
impl Default for HttpRouteFaultInjectionPolicyAbort
Source§fn default() -> HttpRouteFaultInjectionPolicyAbort
fn default() -> HttpRouteFaultInjectionPolicyAbort
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HttpRouteFaultInjectionPolicyAbort
impl<'de> Deserialize<'de> for HttpRouteFaultInjectionPolicyAbort
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
impl Part for HttpRouteFaultInjectionPolicyAbort
Auto Trait Implementations§
impl Freeze for HttpRouteFaultInjectionPolicyAbort
impl RefUnwindSafe for HttpRouteFaultInjectionPolicyAbort
impl Send for HttpRouteFaultInjectionPolicyAbort
impl Sync for HttpRouteFaultInjectionPolicyAbort
impl Unpin for HttpRouteFaultInjectionPolicyAbort
impl UnwindSafe for HttpRouteFaultInjectionPolicyAbort
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