Structure-Preserving Operator Learning