pub enum ActionEffect {
None,
RateMultiplier {
target: String,
multiplier: f64,
},
Rejection {
reason: String,
},
StatusOverride {
status: u16,
},
LatencyAdjustment {
delta_ms: i64,
},
Chaostrigger {
rule_name: String,
},
BodyPatch {
path: String,
value: String,
},
}Expand description
The concrete effect produced by executing an action
Variants§
None
No effect
RateMultiplier
Multiply a rate (conversion, churn, etc.)
Rejection
Decline / reject a request
StatusOverride
Override the HTTP status code
LatencyAdjustment
Adjust latency by a delta
Chaostrigger
Trigger an external chaos rule
BodyPatch
Patch the response body at a JSON path
Trait Implementations§
Source§impl Clone for ActionEffect
impl Clone for ActionEffect
Source§fn clone(&self) -> ActionEffect
fn clone(&self) -> ActionEffect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ActionEffect
impl Debug for ActionEffect
Source§impl<'de> Deserialize<'de> for ActionEffect
impl<'de> Deserialize<'de> for ActionEffect
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 ActionEffect
impl PartialEq for ActionEffect
Source§fn eq(&self, other: &ActionEffect) -> bool
fn eq(&self, other: &ActionEffect) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ActionEffect
impl Serialize for ActionEffect
impl StructuralPartialEq for ActionEffect
Auto Trait Implementations§
impl Freeze for ActionEffect
impl RefUnwindSafe for ActionEffect
impl Send for ActionEffect
impl Sync for ActionEffect
impl Unpin for ActionEffect
impl UnsafeUnpin for ActionEffect
impl UnwindSafe for ActionEffect
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