pub struct ChaosExperiment {
pub name: Option<String>,
pub loop_back: Option<bool>,
pub stages: Vec<ChaosStage>,
}Expand description
A scheduled multi-stage chaos experiment definition. Maps to the
ChaosExperiment schema (the body of PUT /mockserver/chaosExperiment).
Fields§
§name: Option<String>Human-readable experiment name.
loop_back: Option<bool>Whether to loop back to stage 0 after the last stage completes (default
false). Serialized as loop on the wire.
stages: Vec<ChaosStage>The ordered sequence of stages.
Implementations§
Trait Implementations§
Source§impl Clone for ChaosExperiment
impl Clone for ChaosExperiment
Source§fn clone(&self) -> ChaosExperiment
fn clone(&self) -> ChaosExperiment
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 ChaosExperiment
impl Debug for ChaosExperiment
Source§impl<'de> Deserialize<'de> for ChaosExperiment
impl<'de> Deserialize<'de> for ChaosExperiment
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 ChaosExperiment
impl PartialEq for ChaosExperiment
Source§fn eq(&self, other: &ChaosExperiment) -> bool
fn eq(&self, other: &ChaosExperiment) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChaosExperiment
impl Serialize for ChaosExperiment
impl StructuralPartialEq for ChaosExperiment
Auto Trait Implementations§
impl Freeze for ChaosExperiment
impl RefUnwindSafe for ChaosExperiment
impl Send for ChaosExperiment
impl Sync for ChaosExperiment
impl Unpin for ChaosExperiment
impl UnsafeUnpin for ChaosExperiment
impl UnwindSafe for ChaosExperiment
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