A characterization of the Vickrey rule in slot allocation problems