pub enum InputDefinitionType {
    Any,
    Boolean,
    Integer {
        maybe_range: Option<InputDefinitionRangeInteger>,
    },
    Float {
        maybe_range: Option<InputDefinitionRangeFloat>,
    },
    String {
        maybe_size: Option<InputDefinitionSize>,
    },
    List {
        maybe_size: Option<InputDefinitionSize>,
        item_definition: Box<InputDefinitionType>,
    },
    StaticMap {
        item_definitions: HashMap<String, InputDefinition>,
    },
    DynamicMap {
        maybe_size: Option<InputDefinitionSize>,
        item_definition: Box<InputDefinitionType>,
    },
    Enum {
        item_list: Vec<Input>,
    },
    Either {
        item_definition_list: Vec<InputDefinitionType>,
    },
}

Variants§

§

Any

§

Boolean

§

Integer

§

Float

§

String

Fields

§

List

Fields

§item_definition: Box<InputDefinitionType>
§

StaticMap

Fields

§item_definitions: HashMap<String, InputDefinition>
§

DynamicMap

Fields

§item_definition: Box<InputDefinitionType>
§

Enum

Fields

§item_list: Vec<Input>
§

Either

Fields

§item_definition_list: Vec<InputDefinitionType>

Implementations§

source§

impl InputDefinitionType

source

pub fn any() -> Self

source

pub fn is_any(&self) -> bool

source§

impl InputDefinitionType

source

pub fn boolean() -> Self

source

pub fn is_boolean(&self) -> bool

source§

impl InputDefinitionType

source§

impl InputDefinitionType

source

pub fn float() -> Self

source

pub fn is_float(&self) -> bool

source

pub fn maybe_float_range(&self) -> Option<&InputDefinitionRangeFloat>

source

pub fn maybe_float_range_mut( &mut self ) -> &mut Option<InputDefinitionRangeFloat>

source

pub fn set_float_range<T: Into<InputDefinitionRangeFloat>>(&mut self, range: T)

source

pub fn with_float_range<T: Into<InputDefinitionRangeFloat>>( self, range: T ) -> Self

source§

impl InputDefinitionType

source

pub fn string() -> Self

source

pub fn is_string(&self) -> bool

source

pub fn maybe_string_size(&self) -> Option<&InputDefinitionSize>

source

pub fn maybe_string_size_mut(&mut self) -> &mut Option<InputDefinitionSize>

source

pub fn set_string_size<T: Into<InputDefinitionSize>>(&mut self, size: T)

source

pub fn with_string_size<T: Into<InputDefinitionSize>>(self, size: T) -> Self

source§

impl InputDefinitionType

source

pub fn list() -> Self

source

pub fn is_list(&self) -> bool

source

pub fn list_item_definition(&self) -> &InputDefinitionType

source

pub fn list_item_definition_mut(&mut self) -> &mut InputDefinitionType

source

pub fn set_list_item_definition<T: Into<InputDefinitionType>>( &mut self, definition: T )

source

pub fn with_list_item_definition<T: Into<InputDefinitionType>>( self, definition: T ) -> Self

source

pub fn maybe_list_size(&self) -> Option<&InputDefinitionSize>

source

pub fn maybe_list_size_mut(&mut self) -> &mut Option<InputDefinitionSize>

source

pub fn set_list_size<T: Into<InputDefinitionSize>>(&mut self, size: T)

source

pub fn with_list_size<T: Into<InputDefinitionSize>>(self, size: T) -> Self

source§

impl InputDefinitionType

source

pub fn static_map() -> Self

source

pub fn is_static_map(&self) -> bool

source

pub fn static_map_definitions(&self) -> &HashMap<String, InputDefinition>

source

pub fn static_map_definitions_mut( &mut self ) -> &mut HashMap<String, InputDefinition>

source

pub fn set_static_map_definition<K: Into<String>, V: Into<InputDefinition>>( &mut self, key: K, definition: V )

source

pub fn with_static_map_definition<K: Into<String>, V: Into<InputDefinition>>( self, key: K, definition: V ) -> Self

source§

impl InputDefinitionType

source§

impl InputDefinitionType

source

pub fn enum_() -> Self

source

pub fn is_enum(&self) -> bool

source

pub fn enum_item_list(&self) -> &Vec<Input>

source

pub fn enum_item_list_mut(&mut self) -> &mut Vec<Input>

source

pub fn set_enum_item_list<T: Into<Input>>(&mut self, item_list: Vec<T>)

source

pub fn with_enum_item_list<T: Into<Input>>(self, item_list: Vec<T>) -> Self

source

pub fn set_enum_item<T: Into<Input>>(&mut self, item: T)

source

pub fn with_enum_item<T: Into<Input>>(self, item: T) -> Self

source§

impl InputDefinitionType

source

pub fn either() -> Self

source

pub fn is_either(&self) -> bool

source

pub fn either_definition_list(&self) -> &Vec<InputDefinitionType>

source

pub fn either_definition_list_mut(&mut self) -> &mut Vec<InputDefinitionType>

source

pub fn set_either_definition_list<T: Into<InputDefinitionType>>( &mut self, definition_list: Vec<T> )

source

pub fn with_either_definition_list<T: Into<InputDefinitionType>>( self, definition_list: Vec<T> ) -> Self

source

pub fn set_either_definition<T: Into<InputDefinitionType>>(&mut self, item: T)

source

pub fn with_either_definition<T: Into<InputDefinitionType>>( self, item: T ) -> Self

Trait Implementations§

source§

impl Clone for InputDefinitionType

source§

fn clone(&self) -> InputDefinitionType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for InputDefinitionType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for InputDefinitionType

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for InputDefinitionType

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for InputDefinitionType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq<InputDefinitionType> for InputDefinitionType

source§

fn eq(&self, other: &InputDefinitionType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for InputDefinitionType

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for InputDefinitionType

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,