[][src]Struct bigml::resource::execution::Args

pub struct Args {
    pub script: Option<Id<Script>>,
    pub name: Option<String>,
    pub inputs: Vec<(String, Value)>,
    pub outputs: Vec<String>,
    pub tags: Vec<String>,
    // some fields omitted
}

Arguments for creating a script execution.

TODO: Lots of missing fields.

Fields

script: Option<Id<Script>>

The ID of the script to run.

name: Option<String>

A nice name for the execution.

inputs: Vec<(String, Value)>

Inputs to our script.

outputs: Vec<String>

Outputs to place into the result field of our Data.

tags: Vec<String>

User-defined tags.

Methods

impl Args[src]

pub fn set_script(&mut self, id: Id<Script>)[src]

Set the script to execute.

pub fn set_name<S>(&mut self, name: S) where
    S: Into<String>, 
[src]

Set the name on the execution.

pub fn add_input<S, V>(&mut self, name: S, value: V) -> Result<()> where
    S: Into<String>,
    V: Serialize
[src]

Add a named input to our script.

pub fn add_output<S>(&mut self, name: S) where
    S: Into<String>, 
[src]

Add a named output parameter that we want place into result.

Trait Implementations

impl Args for Args[src]

type Resource = Execution

The resource type these arguments create.

impl Clone for Args[src]

impl Default for Args[src]

impl Debug for Args[src]

impl Serialize for Args[src]

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

Auto Trait Implementations

impl Send for Args

impl Sync for Args

impl Unpin for Args

impl UnwindSafe for Args

impl RefUnwindSafe for Args

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