The spouse of a diplomat posted to Switzerland normally receives a carte de légitimation, a document that shows that the bearer is entitled to be in Switzerland and possibly enjoys some degree of immunity. If the spouse wants to work, it is possible to exchange this document for a type Ci residence permit.
However, if the spouse is a citizen of the European Union or of a country belonging to the European Free Trade Area, the spouse may instead opt to receive a type B residence permit (see, for example, this page from CERN and the Swiss government's page of relevant documents to which it links).
For a spouse who will be working, what are the practical implications of this choice? Are there any advantages to having a Ci card instead of a B permit, or vice versa? Does the answer change depending on whether the employer is in Switzerland or outside of Switzerland?