pub struct TestInvokeMethodRequest {
pub body: Option<String>,
pub client_certificate_id: Option<String>,
pub headers: Option<HashMap<String, String>>,
pub http_method: String,
pub multi_value_headers: Option<HashMap<String, Vec<String>>>,
pub path_with_query_string: Option<String>,
pub resource_id: String,
pub rest_api_id: String,
pub stage_variables: Option<HashMap<String, String>>,
}
Expand description
Make a request to simulate the execution of a Method.
Fields
body: Option<String>
The simulated request body of an incoming invocation request.
client_certificate_id: Option<String>
A ClientCertificate identifier to use in the test invocation. API Gateway will use the certificate when making the HTTPS request to the defined back-end endpoint.
headers: Option<HashMap<String, String>>
A key-value map of headers to simulate an incoming invocation request.
http_method: String
[Required] Specifies a test invoke method request's HTTP method.
multi_value_headers: Option<HashMap<String, Vec<String>>>
The headers as a map from string to list of values to simulate an incoming invocation request.
path_with_query_string: Option<String>
The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.
resource_id: String
[Required] Specifies a test invoke method request's resource ID.
rest_api_id: String
[Required] The string identifier of the associated RestApi.
stage_variables: Option<HashMap<String, String>>
A key-value map of stage variables to simulate an invocation on a deployed Stage.
Trait Implementations
sourceimpl Clone for TestInvokeMethodRequest
impl Clone for TestInvokeMethodRequest
sourcefn clone(&self) -> TestInvokeMethodRequest
fn clone(&self) -> TestInvokeMethodRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TestInvokeMethodRequest
impl Debug for TestInvokeMethodRequest
sourceimpl Default for TestInvokeMethodRequest
impl Default for TestInvokeMethodRequest
sourcefn default() -> TestInvokeMethodRequest
fn default() -> TestInvokeMethodRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<TestInvokeMethodRequest> for TestInvokeMethodRequest
impl PartialEq<TestInvokeMethodRequest> for TestInvokeMethodRequest
sourcefn eq(&self, other: &TestInvokeMethodRequest) -> bool
fn eq(&self, other: &TestInvokeMethodRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TestInvokeMethodRequest) -> bool
fn ne(&self, other: &TestInvokeMethodRequest) -> bool
This method tests for !=
.
sourceimpl Serialize for TestInvokeMethodRequest
impl Serialize for TestInvokeMethodRequest
impl StructuralPartialEq for TestInvokeMethodRequest
Auto Trait Implementations
impl RefUnwindSafe for TestInvokeMethodRequest
impl Send for TestInvokeMethodRequest
impl Sync for TestInvokeMethodRequest
impl Unpin for TestInvokeMethodRequest
impl UnwindSafe for TestInvokeMethodRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more