pub struct ChainRequest {
pub id: String,
pub method: String,
pub url: String,
pub headers: HashMap<String, String>,
pub body: Option<RequestBody>,
pub depends_on: Vec<String>,
pub timeout_secs: Option<u64>,
pub expected_status: Option<Vec<u16>>,
pub scripting: Option<RequestScripting>,
}
Expand description
A single request in a chain
Fields§
§id: String
Unique identifier for this request in the chain
method: String
HTTP method
url: String
Request URL (can contain template variables)
headers: HashMap<String, String>
Request headers
body: Option<RequestBody>
Request body (can contain template variables)
depends_on: Vec<String>
Dependencies - IDs of other requests that must complete first
timeout_secs: Option<u64>
Timeout for this individual request
expected_status: Option<Vec<u16>>
Expected status code range (optional validation)
scripting: Option<RequestScripting>
Pre/Post request scripting
Trait Implementations§
Source§impl Clone for ChainRequest
impl Clone for ChainRequest
Source§fn clone(&self) -> ChainRequest
fn clone(&self) -> ChainRequest
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 ChainRequest
impl Debug for ChainRequest
Source§impl<'de> Deserialize<'de> for ChainRequest
impl<'de> Deserialize<'de> for ChainRequest
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 ChainRequest
impl RefUnwindSafe for ChainRequest
impl Send for ChainRequest
impl Sync for ChainRequest
impl Unpin for ChainRequest
impl UnwindSafe for ChainRequest
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