[][src]Struct bigml::resource::script::Input

pub struct Input {
    pub name: String,
    pub type_: Type,
    pub default: Option<Value>,
    pub description: Option<String>,
    // some fields omitted
}

A script input declaration.

Fields

name: String

The variable name of this input.

type_: Type

The type of this input.

default: Option<Value>

The default value of this input.

description: Option<String>

A description of this input.

Methods

impl Input[src]

pub fn new<S: Into<String>>(name: S, type_: Type) -> Input[src]

Create a new Input value.

Trait Implementations

impl Clone for Input[src]

impl Debug for Input[src]

impl Serialize for Input[src]

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

Auto Trait Implementations

impl Send for Input

impl Sync for Input

impl Unpin for Input

impl UnwindSafe for Input

impl RefUnwindSafe for Input

Blanket Implementations

impl<T> From<T> 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 = !

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.

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

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

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

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

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

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