Macro dash_sdk::delegate_from_proof_variant
source ยท macro_rules! delegate_from_proof_variant { ($request:ty, $response:ty, $object:ty, $(($variant:ident, $req: ty, $resp: ty)),+) => { ... }; }
Expand description
Delegate the execution of a FromProof trait to an enum supporting multiple variants.
In order to support multiple request/response types for one object (like, GetIdentityRequest and GetIdentityByFirstPublicKeyHashRequest for Identity), we need to wrap them in an enum and delegate the execution of the transport request to the appropriate variant.
See delegate_enum! for more details.