#[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 moresource§impl Debug for SmartModuleInitialData
impl Debug for SmartModuleInitialData
Auto Trait Implementations§
impl RefUnwindSafe for SmartModuleInitialData
impl Send for SmartModuleInitialData
impl Sync for SmartModuleInitialData
impl Unpin for SmartModuleInitialData
impl UnwindSafe for SmartModuleInitialData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more