pub struct BatchResult {
pub task_id: u64,
pub results: Vec<String>,
pub processing_time: Duration,
pub success: bool,
pub error: Option<TranslationError>,
}
Expand description
批处理结果
Fields§
§task_id: u64
§results: Vec<String>
§processing_time: Duration
§success: bool
§error: Option<TranslationError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BatchResult
impl RefUnwindSafe for BatchResult
impl Send for BatchResult
impl Sync for BatchResult
impl Unpin for BatchResult
impl UnwindSafe for BatchResult
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