createDestination

Helper function to create a DestinationId from a string.

Parameters

A

The argument type of the destination.

R

The return type of the destination.