Definable structures in o-minimal theories: One dimensional types