Struct amfnbatchlib::batch::list_batch::ListBatch [−]
pub struct ListBatch { /* fields omitted */ }List of batches list trait.
Implementations
impl ListBatch
impl ListBatchList of batches implementation.
pub fn add_batch(
&mut self,
name_param: &str,
group_param: &str,
locale_param: &str,
enabled_param: bool,
actions_param: Vec<ElemBatchAction>,
inputs_param: Vec<ElemBatchIO>,
outputs_param: Vec<ElemBatchIO>
) -> bool
pub fn add_batch(
&mut self,
name_param: &str,
group_param: &str,
locale_param: &str,
enabled_param: bool,
actions_param: Vec<ElemBatchAction>,
inputs_param: Vec<ElemBatchIO>,
outputs_param: Vec<ElemBatchIO>
) -> boolAdd a new batch into the batches list. Duplicate batches are allowed.
Arguments
name_param- Name of the batch.group_param- Optional group of the batch.locale_param- User locale of the batch.enabled_param- Enabled for execution.actions_param- Actions of the batch.inputs_param- Inputs of the batch.outputs_param- Outputs of the batch.
Return
- True if successful, otherwise false.
pub fn actions(&self) -> &Vec<ElemBatchAction>
pub fn actions(&self) -> &Vec<ElemBatchAction>pub fn inputs(&self) -> &Vec<ElemBatchIO>
pub fn inputs(&self) -> &Vec<ElemBatchIO>pub fn outputs(&self) -> &Vec<ElemBatchIO>
pub fn outputs(&self) -> &Vec<ElemBatchIO>pub fn copy_actions(&self) -> Vec<ElemBatchAction>
pub fn copy_actions(&self) -> Vec<ElemBatchAction>pub fn copy_inputs(&self) -> Vec<ElemBatchIO>
pub fn copy_inputs(&self) -> Vec<ElemBatchIO>pub fn copy_outputs(&self) -> Vec<ElemBatchIO>
pub fn copy_outputs(&self) -> Vec<ElemBatchIO>