pub fn default_action_chooser(
    available: DndAction,
    preferred: DndAction
) -> DndAction
Expand description

A simple action chooser for DnD negociation

If the preferred action is available, it’ll pick it. Otherwise, it’ll pick the first available in the following order: Ask, Copy, Move.