#[non_exhaustive]#[repr(i32)]pub enum Language {
Show 48 variants
Unknown = 0,
English = 1,
French = 2,
Spanish = 3,
German = 4,
Italian = 5,
Danish = 6,
Dutch = 7,
Japanese = 8,
Icelandic = 9,
Chinese = 10,
Russian = 11,
Polish = 12,
Vietnamese = 13,
Swedish = 14,
Norwegian = 15,
Finnish = 16,
Turkish = 17,
Portuguese = 18,
Flemish = 19,
Greek = 20,
Korean = 21,
Hungarian = 22,
Hebrew = 23,
Lithuanian = 24,
Czech = 25,
Arabic = 26,
Hindi = 27,
Bulgarian = 28,
Malayalam = 29,
Ukrainian = 30,
Slovak = 31,
Thai = 32,
PortugueseBrazil = 33,
SpanishLatino = 34,
Romanian = 35,
Latvian = 36,
Persian = 37,
Catalan = 38,
Croatian = 39,
Serbian = 40,
Bosnian = 41,
Estonian = 42,
Tamil = 43,
Indonesian = 44,
Macedonian = 45,
Slovenian = 46,
Original = -2,
}Expand description
Spoken / written language identifier with a stable integer ID.
IDs match Sonarr’s Language.cs static initializers verbatim: 46
contiguous positive variants from English = 1 through
Slovenian = 46, plus Unknown = 0 and the sentinel Original = -2
used by Sonarr’s quality-profile machinery to mean “the series’
original audio language”, whatever that resolves to at the time.
Total: 48 variants (the m50 plan-spec drafted “47” but C#
Language.cs:122-178 actually contains 48 entries; standing
rule #1 says C# fidelity wins). See the C# All list ordering:
every variant here matches the order in that list, with Original
last as in C#.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown = 0
English = 1
French = 2
Spanish = 3
German = 4
Italian = 5
Danish = 6
Dutch = 7
Japanese = 8
Icelandic = 9
Chinese = 10
Russian = 11
Polish = 12
Vietnamese = 13
Swedish = 14
Norwegian = 15
Finnish = 16
Turkish = 17
Portuguese = 18
Flemish = 19
Greek = 20
Korean = 21
Hungarian = 22
Hebrew = 23
Lithuanian = 24
Czech = 25
Arabic = 26
Hindi = 27
Bulgarian = 28
Malayalam = 29
Ukrainian = 30
Slovak = 31
Thai = 32
PortugueseBrazil = 33
SpanishLatino = 34
Romanian = 35
Latvian = 36
Persian = 37
Catalan = 38
Croatian = 39
Serbian = 40
Bosnian = 41
Estonian = 42
Tamil = 43
Indonesian = 44
Macedonian = 45
Slovenian = 46
Original = -2
Implementations§
Trait Implementations§
impl Copy for Language
impl Eq for Language
impl StructuralPartialEq for Language
Auto Trait Implementations§
impl Freeze for Language
impl RefUnwindSafe for Language
impl Send for Language
impl Sync for Language
impl Unpin for Language
impl UnsafeUnpin for Language
impl UnwindSafe for Language
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more