pub enum LocaleDetectionStrategy {
Header,
Cookie,
Session,
Callback,
}Expand description
Locale detection strategy order (checked in sequence until one yields a locale).
Variants§
Trait Implementations§
Source§impl Clone for LocaleDetectionStrategy
impl Clone for LocaleDetectionStrategy
impl Copy for LocaleDetectionStrategy
Source§impl Debug for LocaleDetectionStrategy
impl Debug for LocaleDetectionStrategy
Source§impl<'de> Deserialize<'de> for LocaleDetectionStrategy
impl<'de> Deserialize<'de> for LocaleDetectionStrategy
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
impl Eq for LocaleDetectionStrategy
Source§impl PartialEq for LocaleDetectionStrategy
impl PartialEq for LocaleDetectionStrategy
Source§impl Serialize for LocaleDetectionStrategy
impl Serialize for LocaleDetectionStrategy
impl StructuralPartialEq for LocaleDetectionStrategy
Auto Trait Implementations§
impl Freeze for LocaleDetectionStrategy
impl RefUnwindSafe for LocaleDetectionStrategy
impl Send for LocaleDetectionStrategy
impl Sync for LocaleDetectionStrategy
impl Unpin for LocaleDetectionStrategy
impl UnsafeUnpin for LocaleDetectionStrategy
impl UnwindSafe for LocaleDetectionStrategy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.