pub struct TextAnalysis {
pub is_translatable: bool,
pub detected_lang: Option<String>,
pub confidence: f32,
pub text_type: TextType,
}Expand description
文本分析结果
包含对文本进行语言检测和类型分析的结果。
Fields§
§is_translatable: bool是否可翻译
detected_lang: Option<String>检测到的语言
confidence: f32检测置信度 (0.0 - 1.0)
text_type: TextType文本类型
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