A characterization of the maximin rule in the context of voting