pub struct GetLang {
pub mode: Mode,
pub language_candidates: Vec<IsoCode639_1>,
pub relative_distance_min: f64,
pub consecutive_words_min: usize,
pub words_total_percentage_min: usize,
}
Expand description
Configuration related to various Tera template filters.
Fields§
§mode: Mode
§language_candidates: Vec<IsoCode639_1>
§relative_distance_min: f64
§consecutive_words_min: usize
§words_total_percentage_min: usize
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GetLang
impl<'de> Deserialize<'de> for GetLang
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 StructuralPartialEq for GetLang
Auto Trait Implementations§
impl Freeze for GetLang
impl RefUnwindSafe for GetLang
impl Send for GetLang
impl Sync for GetLang
impl Unpin for GetLang
impl UnwindSafe for GetLang
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more