Struct google_connectors1::api::JsonSchema
source · pub struct JsonSchema {
pub default: Option<Value>,
pub description: Option<String>,
pub enum_: Option<Vec<Value>>,
pub format: Option<String>,
pub items: Option<Option<Box<JsonSchema>>>,
pub jdbc_type: Option<String>,
pub properties: Option<HashMap<String, JsonSchema>>,
pub required: Option<Vec<String>>,
pub type_: Option<Vec<String>>,
}
Expand description
JsonSchema representation of schema metadata
This type is not used in any activity, and only used as part of another schema.
Fields§
§default: Option<Value>
The default value of the field or object described by this schema.
description: Option<String>
A description of this schema.
enum_: Option<Vec<Value>>
Possible values for an enumeration. This works in conjunction with type
to represent types with a fixed set of legal values
format: Option<String>
Format of the value as per https://json-schema.org/understanding-json-schema/reference/string.html#format
items: Option<Option<Box<JsonSchema>>>
Schema that applies to array values, applicable only if this is of type array
.
jdbc_type: Option<String>
JDBC datatype of the field.
properties: Option<HashMap<String, JsonSchema>>
The child schemas, applicable only if this is of type object
. The key is the name of the property and the value is the json schema that describes that property
required: Option<Vec<String>>
Whether this property is required.
type_: Option<Vec<String>>
JSON Schema Validation: A Vocabulary for Structural Validation of JSON
Trait Implementations§
source§impl Clone for JsonSchema
impl Clone for JsonSchema
source§fn clone(&self) -> JsonSchema
fn clone(&self) -> JsonSchema
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more