Struct deeprl::DocumentStatus
source · pub struct DocumentStatus {
pub document_id: String,
pub status: DocState,
pub seconds_remaining: Option<u64>,
pub billed_characters: Option<u64>,
pub error_message: Option<String>,
}
Expand description
Document translation status
Fields§
§document_id: String
A unique ID assigned to the uploaded document
status: DocState
A short description of the current state of the document translation process
seconds_remaining: Option<u64>
Estimated number of seconds until the translation is done. This parameter is only included while status is “translating”.
billed_characters: Option<u64>
The number of characters billed to your account
error_message: Option<String>
Description of the error, if available. This parameter may be included if an error occurred during translation.
Implementations§
Trait Implementations§
source§impl Debug for DocumentStatus
impl Debug for DocumentStatus
source§impl<'de> Deserialize<'de> for DocumentStatus
impl<'de> Deserialize<'de> for DocumentStatus
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
Auto Trait Implementations§
impl Freeze for DocumentStatus
impl RefUnwindSafe for DocumentStatus
impl Send for DocumentStatus
impl Sync for DocumentStatus
impl Unpin for DocumentStatus
impl UnwindSafe for DocumentStatus
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