pub struct TextAnalysis {
pub should_translate: bool,
pub confidence: f32,
pub language_hint: LanguageHint,
pub reasons: Vec<String>,
}
Expand description
文本分析结果
Fields§
§should_translate: bool
是否应该翻译
confidence: f32
翻译置信度 (0.0 - 1.0)
language_hint: LanguageHint
语言提示
reasons: Vec<String>
跳过原因
Trait Implementations§
Source§impl Clone for TextAnalysis
impl Clone for TextAnalysis
Source§fn clone(&self) -> TextAnalysis
fn clone(&self) -> TextAnalysis
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 TextAnalysis
impl RefUnwindSafe for TextAnalysis
impl Send for TextAnalysis
impl Sync for TextAnalysis
impl Unpin for TextAnalysis
impl UnwindSafe for TextAnalysis
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