This is the clean 2D case. The rod is vertical, it moves horizontally, and the magnetic field is perpendicular to the screen. Moving charges feel the magnetic Lorentz force and separate toward opposite rod ends.