Struct google_discovery1::api::JsonSchema [−][src]
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields
ref_: Option<String>A reference to another schema. The value of this property is the "id" of another schema.
additional_properties: Option<Option<Box<JsonSchema>>>If this is a schema for an object, this property is the schema for any additional properties with dynamic keys on this object.
annotations: Option<JsonSchemaAnnotations>Additional information about this property.
default: Option<String>The default value of this property (if one exists).
description: Option<String>A description of this object.
enum_: Option<Vec<String>>Values this parameter may take (if it is an enum).
enum_descriptions: Option<Vec<String>>The descriptions for the enums. Each position maps to the corresponding value in the "enum" array.
format: Option<String>An additional regular expression or key that helps constrain the value. For more details see: http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.23
id: Option<String>Unique identifier for this schema.
items: Option<Option<Box<JsonSchema>>>If this is a schema for an array, this property is the schema for each element in the array.
location: Option<String>Whether this parameter goes in the query or the path for REST requests.
maximum: Option<String>The maximum value of this parameter.
minimum: Option<String>The minimum value of this parameter.
pattern: Option<String>The regular expression this parameter must conform to. Uses Java 6 regex format: http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html
properties: Option<HashMap<String, JsonSchema>>If this is a schema for an object, list the schema for each property of this object.
read_only: Option<bool>The value is read-only, generated by the service. The value cannot be modified by the client. If the value is included in a POST, PUT, or PATCH request, it is ignored by the service.
repeated: Option<bool>Whether this parameter may appear multiple times.
required: Option<bool>Whether the parameter is required.
type_: Option<String>The value type for this schema. A list of values can be found here: http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.1
variant: Option<JsonSchemaVariant>In a variant data type, the value of one property is used to determine how to interpret the entire entity. Its value must exist in a map of descriminant values to schema names.
Trait Implementations
impl Clone for JsonSchema[src]
fn clone(&self) -> JsonSchema[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for JsonSchema[src]
impl Default for JsonSchema[src]
fn default() -> JsonSchema[src]
impl<'de> Deserialize<'de> for JsonSchema[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Part for JsonSchema[src]
impl Serialize for JsonSchema[src]
Auto Trait Implementations
impl RefUnwindSafe for JsonSchema[src]
impl Send for JsonSchema[src]
impl Sync for JsonSchema[src]
impl Unpin for JsonSchema[src]
impl UnwindSafe for JsonSchema[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,