#[non_exhaustive]pub struct CreateRouteResponseInput {
pub api_id: Option<String>,
pub model_selection_expression: Option<String>,
pub response_models: Option<HashMap<String, String>>,
pub response_parameters: Option<HashMap<String, ParameterConstraints>>,
pub route_id: Option<String>,
pub route_response_key: Option<String>,
}
Expand description
Creates a new RouteResponse resource to represent a route response.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.api_id: Option<String>
The API identifier.
model_selection_expression: Option<String>
The model selection expression for the route response. Supported only for WebSocket APIs.
response_models: Option<HashMap<String, String>>
The response models for the route response.
response_parameters: Option<HashMap<String, ParameterConstraints>>
The route response parameters.
route_id: Option<String>
The route ID.
route_response_key: Option<String>
The route response key.
Implementations§
source§impl CreateRouteResponseInput
impl CreateRouteResponseInput
sourcepub fn model_selection_expression(&self) -> Option<&str>
pub fn model_selection_expression(&self) -> Option<&str>
The model selection expression for the route response. Supported only for WebSocket APIs.
sourcepub fn response_models(&self) -> Option<&HashMap<String, String>>
pub fn response_models(&self) -> Option<&HashMap<String, String>>
The response models for the route response.
sourcepub fn response_parameters(
&self
) -> Option<&HashMap<String, ParameterConstraints>>
pub fn response_parameters( &self ) -> Option<&HashMap<String, ParameterConstraints>>
The route response parameters.
sourcepub fn route_response_key(&self) -> Option<&str>
pub fn route_response_key(&self) -> Option<&str>
The route response key.
source§impl CreateRouteResponseInput
impl CreateRouteResponseInput
sourcepub fn builder() -> CreateRouteResponseInputBuilder
pub fn builder() -> CreateRouteResponseInputBuilder
Creates a new builder-style object to manufacture CreateRouteResponseInput
.
Trait Implementations§
source§impl Clone for CreateRouteResponseInput
impl Clone for CreateRouteResponseInput
source§fn clone(&self) -> CreateRouteResponseInput
fn clone(&self) -> CreateRouteResponseInput
Returns a copy 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 CreateRouteResponseInput
impl Debug for CreateRouteResponseInput
source§impl PartialEq for CreateRouteResponseInput
impl PartialEq for CreateRouteResponseInput
source§fn eq(&self, other: &CreateRouteResponseInput) -> bool
fn eq(&self, other: &CreateRouteResponseInput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateRouteResponseInput
Auto Trait Implementations§
impl RefUnwindSafe for CreateRouteResponseInput
impl Send for CreateRouteResponseInput
impl Sync for CreateRouteResponseInput
impl Unpin for CreateRouteResponseInput
impl UnwindSafe for CreateRouteResponseInput
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> 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>
Creates a shared type from an unshared type.