pub struct Batch {
pub items: Vec<TextItem>,
pub estimated_chars: usize,
pub batch_type: BatchType,
pub priority: BatchPriority,
pub created_at: Instant,
}Expand description
翻译批次
Fields§
§items: Vec<TextItem>批次中的文本项
estimated_chars: usize估计的字符数
batch_type: BatchType批次类型
priority: BatchPriority批次优先级
created_at: Instant创建时间
Implementations§
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