Skip to main content

ExecutionContext

Trait ExecutionContext 

Source
pub trait ExecutionContext<T>: ValidationContext {
    // Required methods
    fn add_effect(&mut self, code: String);
    fn add_setter(&mut self, code: String);
    fn set_data(&mut self, data: T);
    fn get_data(&self) -> Option<&T>;
    fn get_effects(&self) -> &[String];
    fn get_setters(&self) -> &[String];
    fn get_status(&self) -> u16;
}
Expand description

The central state object passed around and returned by UseCases.

Required Methods§

Source

fn add_effect(&mut self, code: String)

Source

fn add_setter(&mut self, code: String)

Source

fn set_data(&mut self, data: T)

Source

fn get_data(&self) -> Option<&T>

Source

fn get_effects(&self) -> &[String]

Source

fn get_setters(&self) -> &[String]

Source

fn get_status(&self) -> u16

Implementors§