pub struct FaultParams {
pub action: FaultAction,
pub command: Option<String>,
pub fault_type: Option<FaultKind>,
pub delay_ms: Option<u64>,
pub error_message: Option<String>,
pub max_triggers: Option<u64>,
}Expand description
Parameters for the fault compound tool.
Fields§
§action: FaultActionWhich fault action to perform.
command: Option<String>Target command name (required for inject and clear).
fault_type: Option<FaultKind>Type of fault to inject (required for inject).
delay_ms: Option<u64>For delay faults: delay in milliseconds.
error_message: Option<String>For error faults: error message to return.
max_triggers: Option<u64>Maximum number of times to trigger (0 or omit for unlimited).
Trait Implementations§
Source§impl Debug for FaultParams
impl Debug for FaultParams
Source§impl<'de> Deserialize<'de> for FaultParams
impl<'de> Deserialize<'de> for FaultParams
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 JsonSchema for FaultParams
impl JsonSchema for FaultParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for FaultParams
impl RefUnwindSafe for FaultParams
impl Send for FaultParams
impl Sync for FaultParams
impl Unpin for FaultParams
impl UnsafeUnpin for FaultParams
impl UnwindSafe for FaultParams
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