pub struct DocumentStatusResp {
pub document_id: String,
pub status: DocumentTranslateStatus,
pub seconds_remaining: Option<u64>,
pub billed_characters: Option<u64>,
pub error_message: Option<String>,
}
Expand description
Response from api/v2/document/$ID
Fields§
§document_id: String
A unique ID assigned to the uploaded document and the requested translation process. The same ID that was used when requesting the translation status.
status: DocumentTranslateStatus
A short description of the state the document translation process is currently in.
See DocumentTranslateStatus
for more.
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>
A short description of the error, if available. Note that the content is subject to change. This parameter may be included if an error occurred during translation.
Trait Implementations§
Source§impl Debug for DocumentStatusResp
impl Debug for DocumentStatusResp
Source§impl<'de> Deserialize<'de> for DocumentStatusResp
impl<'de> Deserialize<'de> for DocumentStatusResp
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 DocumentStatusResp
impl RefUnwindSafe for DocumentStatusResp
impl Send for DocumentStatusResp
impl Sync for DocumentStatusResp
impl Unpin for DocumentStatusResp
impl UnwindSafe for DocumentStatusResp
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