Struct google_discovery1::api::JsonSchemaVariant[][src]

pub struct JsonSchemaVariant {
    pub discriminant: Option<String>,
    pub map: Option<Vec<JsonSchemaVariantMap>>,
}

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.

This type is not used in any activity, and only used as part of another schema.

Fields

discriminant: Option<String>

The name of the type discriminant property.

map: Option<Vec<JsonSchemaVariantMap>>

The map of discriminant value to schema to use for parsing..

Trait Implementations

impl Clone for JsonSchemaVariant[src]

impl Debug for JsonSchemaVariant[src]

impl Default for JsonSchemaVariant[src]

impl<'de> Deserialize<'de> for JsonSchemaVariant[src]

impl NestedType for JsonSchemaVariant[src]

impl Part for JsonSchemaVariant[src]

impl Serialize for JsonSchemaVariant[src]

Auto Trait Implementations

impl RefUnwindSafe for JsonSchemaVariant[src]

impl Send for JsonSchemaVariant[src]

impl Sync for JsonSchemaVariant[src]

impl Unpin for JsonSchemaVariant[src]

impl UnwindSafe for JsonSchemaVariant[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.