pub trait OpHelper {
    fn to_type<ET, LT>(&self) -> Result<OpType<ET, LT>, WasmError>
    where
        ET: EntryTypesHelper + UnitEnum,
        <ET as UnitEnum>::Unit: Into<ZomeEntryTypesKey>,
        LT: LinkTypesHelper,
        WasmError: From<<ET as EntryTypesHelper>::Error>,
        WasmError: From<<LT as LinkTypesHelper>::Error>
; }
Expand description

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

Not all data is available in the OpType. 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

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

Implementors