pub struct Request {Show 19 fields
pub id: String,
pub name: String,
pub test: Option<String>,
pub url: String,
pub method: Option<RequestMethod>,
pub timeout: Option<u32>,
pub headers: Option<Vec<NameValuePair>>,
pub query_string_params: Option<Vec<NameValuePair>>,
pub body: Option<RequestBody>,
pub keep_alive: Option<bool>,
pub runs: usize,
pub multi_run_execution: ExecutionConcurrency,
pub selected_scenario: Option<Selection>,
pub selected_authorization: Option<Selection>,
pub selected_certificate: Option<Selection>,
pub selected_proxy: Option<Selection>,
pub selected_data: Option<Selection>,
pub warnings: Option<Vec<String>>,
pub validation_errors: Option<HashMap<String, String>>,
}Expand description
Information required to dispatch and test an Apicize Request
Fields§
§id: StringUnique identifier (required to keep track of dispatches and test executions)
name: StringHuman-readable name describing the Apicize Request
test: Option<String>Test to execute after dispatching request and receiving response
url: StringURL to dispatch the HTTP request to
method: Option<RequestMethod>HTTP method
timeout: Option<u32>Timeout, in milliseconds, to wait for a response
headers: Option<Vec<NameValuePair>>HTTP headers
query_string_params: Option<Vec<NameValuePair>>HTTP query string parameters
body: Option<RequestBody>HTTP body
keep_alive: Option<bool>Keep HTTP connection alive
runs: usizeNumber of runs for the request to execute
multi_run_execution: ExecutionConcurrencyExecution of multiple runs
selected_scenario: Option<Selection>Selected scenario, if applicable
Selected authorization, if applicable
selected_certificate: Option<Selection>Selected certificate, if applicable
selected_proxy: Option<Selection>Selected proxy, if applicable
selected_data: Option<Selection>Selected external data, if any
warnings: Option<Vec<String>>Populated with any warnings regarding how the request is set up upon load
validation_errors: Option<HashMap<String, String>>Validation errors
Trait Implementations§
Source§impl CloneIdentifiable for Request
impl CloneIdentifiable for Request
Source§fn clone_as_new(&self, new_name: String) -> Self
fn clone_as_new(&self, new_name: String) -> Self
Create a copy with a new identifier
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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 EditableWarnings for Request
impl EditableWarnings for Request
Source§impl Identifiable for Request
impl Identifiable for Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more