#[non_exhaustive]pub struct MultiLanguageDetection {
pub enable_multi_language_detection: bool,
/* private fields */
}Expand description
Metadata to enable multi language detection via template.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enable_multi_language_detection: boolRequired. If true, multi language detection will be enabled.
Implementations§
Source§impl MultiLanguageDetection
impl MultiLanguageDetection
pub fn new() -> Self
Sourcepub fn set_enable_multi_language_detection<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_multi_language_detection<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_multi_language_detection.
§Example
ⓘ
let x = MultiLanguageDetection::new().set_enable_multi_language_detection(true);Trait Implementations§
Source§impl Clone for MultiLanguageDetection
impl Clone for MultiLanguageDetection
Source§fn clone(&self) -> MultiLanguageDetection
fn clone(&self) -> MultiLanguageDetection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MultiLanguageDetection
impl Debug for MultiLanguageDetection
Source§impl Default for MultiLanguageDetection
impl Default for MultiLanguageDetection
Source§fn default() -> MultiLanguageDetection
fn default() -> MultiLanguageDetection
Returns the “default value” for a type. Read more
Source§impl Message for MultiLanguageDetection
impl Message for MultiLanguageDetection
Source§impl PartialEq for MultiLanguageDetection
impl PartialEq for MultiLanguageDetection
impl StructuralPartialEq for MultiLanguageDetection
Auto Trait Implementations§
impl Freeze for MultiLanguageDetection
impl RefUnwindSafe for MultiLanguageDetection
impl Send for MultiLanguageDetection
impl Sync for MultiLanguageDetection
impl Unpin for MultiLanguageDetection
impl UnwindSafe for MultiLanguageDetection
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