pub struct Batch {
pub id: usize,
pub items: Vec<TextItem>,
pub priority: TextPriority,
pub estimated_chars: usize,
pub created_at: Instant,
}Expand description
翻译批次
Fields§
§id: usize批次ID
items: Vec<TextItem>包含的文本项
priority: TextPriority批次优先级
estimated_chars: usize预估字符总数
created_at: Instant创建时间
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Batch
impl RefUnwindSafe for Batch
impl Send for Batch
impl Sync for Batch
impl Unpin for Batch
impl UnwindSafe for Batch
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