pub struct ScriptExecutionContext {
pub chain_context: ChainContext,
pub request_variables: HashMap<String, Value>,
pub current_request: Option<ChainRequest>,
pub current_response: Option<ChainResponse>,
}
Expand description
Script execution context for pre/post request scripts
Fields§
§chain_context: ChainContext
Chain context with stored responses
request_variables: HashMap<String, Value>
Request-scoped variables
current_request: Option<ChainRequest>
Current request being executed
current_response: Option<ChainResponse>
Current response (for post-scripts)
Trait Implementations§
Source§impl Clone for ScriptExecutionContext
impl Clone for ScriptExecutionContext
Source§fn clone(&self) -> ScriptExecutionContext
fn clone(&self) -> ScriptExecutionContext
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 ScriptExecutionContext
impl Debug for ScriptExecutionContext
Source§impl<'de> Deserialize<'de> for ScriptExecutionContext
impl<'de> Deserialize<'de> for ScriptExecutionContext
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 ScriptExecutionContext
impl RefUnwindSafe for ScriptExecutionContext
impl Send for ScriptExecutionContext
impl Sync for ScriptExecutionContext
impl Unpin for ScriptExecutionContext
impl UnwindSafe for ScriptExecutionContext
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