pub enum DocState {
Queued,
Translating,
Done,
Error,
}
Expand description
Document state
Variants§
Queued
The translation job is waiting in line to be processed
Translating
The translation is currently ongoing
Done
The translation is done and the document is ready for download
Error
An irrecoverable error occurred while translating the document
Trait Implementations§
source§impl<'de> Deserialize<'de> for DocState
impl<'de> Deserialize<'de> for DocState
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for DocState
Auto Trait Implementations§
impl Freeze for DocState
impl RefUnwindSafe for DocState
impl Send for DocState
impl Sync for DocState
impl Unpin for DocState
impl UnwindSafe for DocState
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