pub enum Lang {
Show 133 variants
Auto,
Af,
Sq,
Am,
Ar,
Hy,
As,
Ay,
Az,
Bm,
Eu,
Be,
Bn,
Bho,
Bs,
Bg,
Ca,
Ceb,
ZhCn,
ZhTw,
Co,
Hr,
Cs,
Da,
Dv,
Doi,
Nl,
En,
Eo,
Et,
Ee,
Tl,
Fi,
Fr,
Fy,
Gl,
Ka,
De,
El,
Gn,
Gu,
Ht,
Ha,
Haw,
Iw,
Hi,
Hmn,
Hu,
Is,
Ig,
Ilo,
Id,
Ga,
It,
Ja,
Jw,
Kn,
Kk,
Km,
Rw,
Gom,
Ko,
Kri,
Ku,
Ckb,
Ky,
Lo,
La,
Lv,
Lt,
Lg,
Lb,
Mk,
Mg,
Mai,
Ms,
Ml,
Mt,
Mi,
Mr,
MniMtei,
Lus,
Mn,
My,
Ne,
No,
Ny,
Or,
Om,
Ps,
Fa,
Pl,
Pt,
Pa,
Qu,
Ro,
Ru,
Sm,
Sa,
Gd,
Nso,
Sr,
St,
Sn,
Sd,
Si,
Sk,
Sl,
So,
Es,
Su,
Sw,
Sv,
Tg,
Ta,
Tt,
Te,
Th,
Ti,
Ts,
Tr,
Tk,
Ak,
Uk,
Ur,
Ug,
Uz,
Vi,
Cy,
Xh,
Yi,
Yo,
Zu,
}Expand description
The language codes supported by the API.
It is also possible to use strings like “en” or “fr” instead of the enum variants but it is not recommended
because it is not checked at compile time, therefore it is eliminated by default features.
To enable this feature, add strings to the features list of the crate.
get how many variants are there in the enum at compile time.
Variants§
Auto
Af
Sq
Am
Ar
Hy
As
Ay
Az
Bm
Eu
Be
Bn
Bho
Bs
Bg
Ca
Ceb
ZhCn
ZhTw
Co
Hr
Cs
Da
Dv
Doi
Nl
En
Eo
Et
Ee
Tl
Fi
Fr
Fy
Gl
Ka
De
El
Gn
Gu
Ht
Ha
Haw
Iw
Hi
Hmn
Hu
Is
Ig
Ilo
Id
Ga
It
Ja
Jw
Kn
Kk
Km
Rw
Gom
Ko
Kri
Ku
Ckb
Ky
Lo
La
Lv
Lt
Lg
Lb
Mk
Mg
Mai
Ms
Ml
Mt
Mi
Mr
MniMtei
Lus
Mn
My
Ne
No
Ny
Or
Om
Ps
Fa
Pl
Pt
Pa
Qu
Ro
Ru
Sm
Sa
Gd
Nso
Sr
St
Sn
Sd
Si
Sk
Sl
So
Es
Su
Sw
Sv
Tg
Ta
Tt
Te
Th
Ti
Ts
Tr
Tk
Ak
Uk
Ur
Ug
Uz
Vi
Cy
Xh
Yi
Yo
Zu
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Lang
impl<'de> Deserialize<'de> for Lang
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&AccurateLang> for &Lang
impl From<&AccurateLang> for &Lang
Source§fn from(lang: &AccurateLang) -> Self
fn from(lang: &AccurateLang) -> Self
Converts to this type from the input type.
Source§impl From<&Lang> for &AccurateLang
impl From<&Lang> for &AccurateLang
Source§impl From<AccurateLang> for Lang
impl From<AccurateLang> for Lang
Source§fn from(lang: AccurateLang) -> Self
fn from(lang: AccurateLang) -> Self
Converts to this type from the input type.
Source§impl From<Lang> for AccurateLang
impl From<Lang> for AccurateLang
Source§impl Ord for Lang
impl Ord for Lang
Source§impl PartialOrd for Lang
impl PartialOrd for Lang
impl Copy for Lang
impl Eq for Lang
impl StructuralPartialEq for Lang
Auto Trait Implementations§
impl Freeze for Lang
impl RefUnwindSafe for Lang
impl Send for Lang
impl Sync for Lang
impl Unpin for Lang
impl UnwindSafe for Lang
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.