#[non_exhaustive]pub struct PutGatewayResponseOutput {
pub response_type: Option<GatewayResponseType>,
pub status_code: Option<String>,
pub response_parameters: Option<HashMap<String, String>>,
pub response_templates: Option<HashMap<String, String>>,
pub default_response: bool,
/* private fields */
}Expand description
A gateway response of a given response type and status code, with optional response parameters and mapping templates.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.response_type: Option<GatewayResponseType>The response type of the associated GatewayResponse.
status_code: Option<String>The HTTP status code for this GatewayResponse.
response_parameters: Option<HashMap<String, String>>Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.
response_templates: Option<HashMap<String, String>>Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
default_response: boolA Boolean flag to indicate whether this GatewayResponse is the default gateway response (true) or not (false). A default gateway response is one generated by API Gateway without any customization by an API developer.
Implementations§
source§impl PutGatewayResponseOutput
impl PutGatewayResponseOutput
sourcepub fn response_type(&self) -> Option<&GatewayResponseType>
pub fn response_type(&self) -> Option<&GatewayResponseType>
The response type of the associated GatewayResponse.
sourcepub fn status_code(&self) -> Option<&str>
pub fn status_code(&self) -> Option<&str>
The HTTP status code for this GatewayResponse.
sourcepub fn response_parameters(&self) -> Option<&HashMap<String, String>>
pub fn response_parameters(&self) -> Option<&HashMap<String, String>>
Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.
sourcepub fn response_templates(&self) -> Option<&HashMap<String, String>>
pub fn response_templates(&self) -> Option<&HashMap<String, String>>
Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
sourcepub fn default_response(&self) -> bool
pub fn default_response(&self) -> bool
A Boolean flag to indicate whether this GatewayResponse is the default gateway response (true) or not (false). A default gateway response is one generated by API Gateway without any customization by an API developer.
source§impl PutGatewayResponseOutput
impl PutGatewayResponseOutput
sourcepub fn builder() -> PutGatewayResponseOutputBuilder
pub fn builder() -> PutGatewayResponseOutputBuilder
Creates a new builder-style object to manufacture PutGatewayResponseOutput.
Trait Implementations§
source§impl Clone for PutGatewayResponseOutput
impl Clone for PutGatewayResponseOutput
source§fn clone(&self) -> PutGatewayResponseOutput
fn clone(&self) -> PutGatewayResponseOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PutGatewayResponseOutput
impl Debug for PutGatewayResponseOutput
source§impl PartialEq for PutGatewayResponseOutput
impl PartialEq for PutGatewayResponseOutput
source§impl RequestId for PutGatewayResponseOutput
impl RequestId for PutGatewayResponseOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.impl StructuralPartialEq for PutGatewayResponseOutput
Auto Trait Implementations§
impl Freeze for PutGatewayResponseOutput
impl RefUnwindSafe for PutGatewayResponseOutput
impl Send for PutGatewayResponseOutput
impl Sync for PutGatewayResponseOutput
impl Unpin for PutGatewayResponseOutput
impl UnwindSafe for PutGatewayResponseOutput
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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>
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>
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