Skip to main content

OpHelper

Trait OpHelper 

Source
pub trait OpHelper {
    // Required method
    fn flattened<ET, LT>(&self) -> Result<FlatOp<ET, LT>, WasmError>
       where ET: EntryTypesHelper + UnitEnum,
             <ET as UnitEnum>::Unit: Into<ZomeTypesKey<EntryDefIndex>>,
             LT: LinkTypesHelper,
             WasmError: From<<ET as EntryTypesHelper>::Error> + From<<LT as LinkTypesHelper>::Error>;
}
Expand description

This trait provides a conversion to a convenience type FlatOp for use in the validation call back.

Not all data is available in the FlatOp. This is why the Op is not taken by value and can still be used after this conversion.

There is data that is common to all ops and can be accessed via helpers on the op.

Required Methods§

Source

fn flattened<ET, LT>(&self) -> Result<FlatOp<ET, LT>, WasmError>

Converts an Op to a FlatOp without consuming it. This will clone the required internal data.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§