pub struct StateMachineConfig {
pub resource_type: String,
pub resource_id_extract: ResourceIdExtractConfig,
pub initial_state: String,
pub state_responses: Option<HashMap<String, StateResponseOverride>>,
}Expand description
State machine configuration for stateful stub responses
Fields§
§resource_type: StringResource type identifier (e.g., “order”, “user”, “payment”)
resource_id_extract: ResourceIdExtractConfigResource ID extraction configuration
initial_state: StringInitial state name
state_responses: Option<HashMap<String, StateResponseOverride>>State-based response mappings (state name -> response override) If provided, responses will vary based on current state
Trait Implementations§
Source§impl Clone for StateMachineConfig
impl Clone for StateMachineConfig
Source§fn clone(&self) -> StateMachineConfig
fn clone(&self) -> StateMachineConfig
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 Debug for StateMachineConfig
impl Debug for StateMachineConfig
Source§impl<'de> Deserialize<'de> for StateMachineConfig
impl<'de> Deserialize<'de> for StateMachineConfig
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
Auto Trait Implementations§
impl Freeze for StateMachineConfig
impl RefUnwindSafe for StateMachineConfig
impl Send for StateMachineConfig
impl Sync for StateMachineConfig
impl Unpin for StateMachineConfig
impl UnwindSafe for StateMachineConfig
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