Struct rusoto_apigatewayv2::Model [−][src]
pub struct Model { pub content_type: Option<String>, pub description: Option<String>, pub model_id: Option<String>, pub name: String, pub schema: Option<String>, }
Expand description
Represents a data model for an API. Supported only for WebSocket APIs. See Create Models and Mapping Templates for Request and Response Mappings.
Fields
content_type: Option<String>
The content-type for the model, for example, "application/json".
description: Option<String>
The description of the model.
model_id: Option<String>
The model identifier.
name: String
The name of the model. Must be alphanumeric.
schema: Option<String>
The schema for the model. For application/json models, this should be JSON schema draft 4 model.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Model
impl UnwindSafe for Model
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self