[][src]Struct opg::models::ContextParams

pub struct ContextParams {
    pub description: Option<String>,
    pub nullable: Option<bool>,
    pub variants: Option<Vec<String>>,
    pub format: Option<String>,
    pub example: Option<String>,
}

Context parameters

Fields

description: Option<String>

Brief description of this object inplace

nullable: Option<bool>

A true value adds "null" to the allowed type specified by the type keyword, only if type is explicitly defined within the same Schema Object

variants: Option<Vec<String>>

Possible enum variants of this string inplace

format: Option<String>

Data type format inplace

example: Option<String>

Example for this object inplace

Trait Implementations

impl Default for ContextParams[src]

Auto Trait Implementations

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> From<T> for T[src]

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

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.