pub struct LanguageInfo {
pub code: String,
pub source: LanguageSource,
pub confidence: f32,
}
Expand description
Detected language information, including code, source, and confidence.
Fields§
§code: String
Standardized language code (e.g., “tc”, “sc”, “en”).
source: LanguageSource
Origin of the language detection result.
confidence: f32
Confidence score of the detection (0.0 to 1.0).
Trait Implementations§
Source§impl Clone for LanguageInfo
impl Clone for LanguageInfo
Source§fn clone(&self) -> LanguageInfo
fn clone(&self) -> LanguageInfo
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 moreAuto Trait Implementations§
impl Freeze for LanguageInfo
impl RefUnwindSafe for LanguageInfo
impl Send for LanguageInfo
impl Sync for LanguageInfo
impl Unpin for LanguageInfo
impl UnwindSafe for LanguageInfo
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