pub struct UploadDocumentResp {
pub document_id: String,
pub document_key: String,
}
Expand description
Response from api/v2/document
Fields§
§document_id: String
A unique ID assigned to the uploaded document and the translation process. Must be used when referring to this particular document in subsequent API requests.
document_key: String
A unique key that is used to encrypt the uploaded document as well as the resulting translation on the server side. Must be provided with every subsequent API request regarding this particular document.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UploadDocumentResp
impl<'de> Deserialize<'de> for UploadDocumentResp
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 UploadDocumentResp
impl RefUnwindSafe for UploadDocumentResp
impl Send for UploadDocumentResp
impl Sync for UploadDocumentResp
impl Unpin for UploadDocumentResp
impl UnwindSafe for UploadDocumentResp
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