A stator and so on are provided which are compatible with a variety of wiring configurations and are excellent in versatility, while preventing an increase in the size of a busbar unit. The stator is defined by a plurality of stator segments joined together to assume a cylindrical shape. Each stator segment includes a core segment including a core back portion and a tooth portion; a coil including a pair of coil wire terminals; an insulating layer arranged between the coil and the tooth portion; and a resin layer arranged to have the entire coil except for the coil wire terminals embedded therein. The resin layers of the stator segments include a supporting structure defined therein to allow a wiring member to be connected with any of the coil wire terminals to be attached to and removed from the stator.