Struct aws_sdk_apigateway::output::CreateModelOutput [−][src]
#[non_exhaustive]pub struct CreateModelOutput {
pub id: Option<String>,
pub name: Option<String>,
pub description: Option<String>,
pub schema: Option<String>,
pub content_type: Option<String>,
}
Expand description
Represents the data structure of a method's request or response payload.
A request model defines the data structure of the client-supplied request payload. A response model defines the data structure of the response payload returned by the back end. Although not required, models are useful for mapping payloads between the front end and back end.
A model is used for generating an API's SDK, validating the input request body, and creating a skeletal mapping template.
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.id: Option<String>
The identifier for the model resource.
name: Option<String>
The name of the model. Must be an alphanumeric string.
description: Option<String>
The description of the model.
schema: Option<String>
The schema for the model. For application/json
models, this should be JSON schema draft 4 model. Do not include "\*/" characters in the description of any properties because such "\*/" characters may be interpreted as the closing marker for comments in some languages, such as Java or JavaScript, causing the installation of your API's SDK generated by API Gateway to fail.
content_type: Option<String>
The content-type for the model.
Implementations
The description of the model.
The schema for the model. For application/json
models, this should be JSON schema draft 4 model. Do not include "\*/" characters in the description of any properties because such "\*/" characters may be interpreted as the closing marker for comments in some languages, such as Java or JavaScript, causing the installation of your API's SDK generated by API Gateway to fail.
The content-type for the model.
Creates a new builder-style object to manufacture CreateModelOutput
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CreateModelOutput
impl Send for CreateModelOutput
impl Sync for CreateModelOutput
impl Unpin for CreateModelOutput
impl UnwindSafe for CreateModelOutput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more