pub struct TextAnalysis {
pub should_translate: bool,
pub translatability_score: f32,
pub text_type: TextType,
pub priority: TextPriority,
pub features: Vec<String>,
}Expand description
文本分析结果
Fields§
§should_translate: bool是否应该翻译
translatability_score: f32可翻译性评分 (0.0-1.0)
text_type: TextType文本类型
priority: TextPriority优先级
features: 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