pub enum FromLang {
Zh,
En,
Auto,
}Expand description
源语言,支持:中文、英文、auto(自动检测)。默认为auto
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FromLang
impl<'de> Deserialize<'de> for FromLang
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 Ord for FromLang
impl Ord for FromLang
Source§impl PartialOrd for FromLang
impl PartialOrd for FromLang
impl Copy for FromLang
impl Eq for FromLang
impl StructuralPartialEq for FromLang
Auto Trait Implementations§
impl Freeze for FromLang
impl RefUnwindSafe for FromLang
impl Send for FromLang
impl Sync for FromLang
impl Unpin for FromLang
impl UnwindSafe for FromLang
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