pub struct BatchTask {
pub id: u64,
pub texts: Vec<String>,
pub priority: Priority,
pub created_at: Instant,
pub retry_count: u32,
}
Expand description
批处理任务
Fields§
§id: u64
§texts: Vec<String>
§priority: Priority
§created_at: Instant
§retry_count: u32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BatchTask
impl RefUnwindSafe for BatchTask
impl Send for BatchTask
impl Sync for BatchTask
impl Unpin for BatchTask
impl UnwindSafe for BatchTask
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