pub struct DocumentVersion {
pub id: String,
pub version_number: Option<i64>,
pub operation: Option<String>,
pub mime_type: Option<String>,
pub size_bytes: Option<u64>,
pub sha256: Option<String>,
pub validation_state: Option<String>,
pub created_at: Option<String>,
pub extra: Object,
}Expand description
One immutable version of a document.
Fields§
§id: StringThe version id (ver_...).
version_number: Option<i64>1 for the upload, then one more for each new version.
operation: Option<String>What created the version, for example ingest or a tool id.
mime_type: Option<String>The content type, for example application/pdf.
size_bytes: Option<u64>The size in bytes.
sha256: Option<String>The SHA-256 of the content, in hex.
validation_state: Option<String>The validation state, for example VALID.
created_at: Option<String>When the version was created (RFC 3339).
extra: ObjectFields this SDK version does not model.
Trait Implementations§
Source§impl Clone for DocumentVersion
impl Clone for DocumentVersion
Source§impl Debug for DocumentVersion
impl Debug for DocumentVersion
Source§impl Default for DocumentVersion
impl Default for DocumentVersion
Source§impl<'de> Deserialize<'de> for DocumentVersion
impl<'de> Deserialize<'de> for DocumentVersion
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
Source§impl PartialEq for DocumentVersion
impl PartialEq for DocumentVersion
Source§impl Serialize for DocumentVersion
impl Serialize for DocumentVersion
impl StructuralPartialEq for DocumentVersion
Auto Trait Implementations§
impl Forget for DocumentVersion
impl Freeze for DocumentVersion
impl Move for DocumentVersion
impl RefUnwindSafe for DocumentVersion
impl Send for DocumentVersion
impl Sync for DocumentVersion
impl Unpin for DocumentVersion
impl UnsafeUnpin for DocumentVersion
impl UnwindSafe for DocumentVersion
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