pub struct PutMethodResponseRequest {
pub http_method: String,
pub resource_id: String,
pub response_models: Option<HashMap<String, String>>,
pub response_parameters: Option<HashMap<String, bool>>,
pub rest_api_id: String,
pub status_code: String,
}
Expand description
Request to add a MethodResponse to an existing Method resource.
Fields
http_method: String
[Required] The HTTP verb of the Method resource.
resource_id: String
response_models: Option<HashMap<String, String>>
Specifies the Model resources used for the response's content type. Response models are represented as a key/value map, with a content type as the key and a Model name as the value.
response_parameters: Option<HashMap<String, bool>>
A key-value map specifying required or optional response parameters that API Gateway can send back to the caller. A key defines a method response header name and the associated value is a Boolean flag indicating whether the method response parameter is required or not. The method response header names must match the pattern of method.response.header.{name}
, where name
is a valid and unique header name. The response parameter names defined here are available in the integration response to be mapped from an integration response header expressed in integration.response.header.{name}
, a static value enclosed within a pair of single quotes (e.g., 'application/json'
), or a JSON expression from the back-end response payload in the form of integration.response.body.{JSON-expression}
, where JSON-expression
is a valid JSON expression without the $
prefix.)
rest_api_id: String
[Required] The string identifier of the associated RestApi.
status_code: String
[Required] The method response's status code.
Trait Implementations
sourceimpl Clone for PutMethodResponseRequest
impl Clone for PutMethodResponseRequest
sourcefn clone(&self) -> PutMethodResponseRequest
fn clone(&self) -> PutMethodResponseRequest
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 PutMethodResponseRequest
impl Debug for PutMethodResponseRequest
sourceimpl Default for PutMethodResponseRequest
impl Default for PutMethodResponseRequest
sourcefn default() -> PutMethodResponseRequest
fn default() -> PutMethodResponseRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<PutMethodResponseRequest> for PutMethodResponseRequest
impl PartialEq<PutMethodResponseRequest> for PutMethodResponseRequest
sourcefn eq(&self, other: &PutMethodResponseRequest) -> bool
fn eq(&self, other: &PutMethodResponseRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PutMethodResponseRequest) -> bool
fn ne(&self, other: &PutMethodResponseRequest) -> bool
This method tests for !=
.
sourceimpl Serialize for PutMethodResponseRequest
impl Serialize for PutMethodResponseRequest
impl StructuralPartialEq for PutMethodResponseRequest
Auto Trait Implementations
impl RefUnwindSafe for PutMethodResponseRequest
impl Send for PutMethodResponseRequest
impl Sync for PutMethodResponseRequest
impl Unpin for PutMethodResponseRequest
impl UnwindSafe for PutMethodResponseRequest
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