pub struct SmartModuleChainBuilder { /* private fields */ }Expand description
Building SmartModule
Implementations§
source§impl SmartModuleChainBuilder
impl SmartModuleChainBuilder
sourcepub fn add_smart_module(&mut self, config: SmartModuleConfig, bytes: Vec<u8>)
pub fn add_smart_module(&mut self, config: SmartModuleConfig, bytes: Vec<u8>)
Add SmartModule with a single transform and init
sourcepub fn initialize(
self,
engine: &SmartEngine
) -> Result<SmartModuleChainInstance>
pub fn initialize( self, engine: &SmartEngine ) -> Result<SmartModuleChainInstance>
stop adding smartmodule and return SmartModuleChain that can be executed
Trait Implementations§
source§impl Default for SmartModuleChainBuilder
impl Default for SmartModuleChainBuilder
source§fn default() -> SmartModuleChainBuilder
fn default() -> SmartModuleChainBuilder
Returns the “default value” for a type. Read more
source§impl<T: Into<Vec<u8>>> From<(SmartModuleConfig, T)> for SmartModuleChainBuilder
impl<T: Into<Vec<u8>>> From<(SmartModuleConfig, T)> for SmartModuleChainBuilder
source§fn from(pair: (SmartModuleConfig, T)) -> Self
fn from(pair: (SmartModuleConfig, T)) -> Self
Converts to this type from the input type.