#[non_exhaustive]
pub enum SmartModuleInitialData {
None,
Aggregate {
accumulator: Vec<u8>,
},
}Expand description
Initial seed data to passed, this will be send back as part of the output
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
source§impl SmartModuleInitialData
impl SmartModuleInitialData
pub fn with_aggregate(accumulator: Vec<u8>) -> Self
Trait Implementations§
source§impl Clone for SmartModuleInitialData
impl Clone for SmartModuleInitialData
source§fn clone(&self) -> SmartModuleInitialData
fn clone(&self) -> SmartModuleInitialData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more