[−][src]Struct bigml::resource::execution::Args
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
.
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]
S: Into<String>,
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]
S: Into<String>,
V: Serialize,
Add a named input to our script.
pub fn add_output<S>(&mut self, name: S) where
S: Into<String>,
[src]
S: Into<String>,
Add a named output parameter that we want place into result
.
Trait Implementations
impl Args for Args
[src]
impl Clone for Args
[src]
impl Default for Args
[src]
impl Debug for Args
[src]
impl Serialize for Args
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Args
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,