pub struct DocumentVersion {Show 14 fields
pub version_id: String,
pub document_id: String,
pub version_number: u64,
pub created_at: DateTime<Utc>,
pub author: String,
pub content_hash: String,
pub metadata_hash: String,
pub tags: Vec<String>,
pub change_summary: Option<ChangeSummary>,
pub parent_version: Option<String>,
pub branch: String,
pub metadata: Metadata,
pub compressed_data: Option<Vec<u8>>,
pub data_size_bytes: u64,
}Expand description
Document version representation
Fields§
§version_id: StringUnique version identifier
document_id: StringDocument ID this version belongs to
version_number: u64Version number (incremental)
created_at: DateTime<Utc>Version timestamp
Author/source of this version
content_hash: StringContent hash for integrity checking
metadata_hash: StringMetadata hash for change detection
Version tags for categorization
change_summary: Option<ChangeSummary>Change summary
parent_version: Option<String>Parent version (for branching)
branch: StringBranch information
metadata: MetadataVersion metadata
compressed_data: Option<Vec<u8>>Compressed document data (if compression enabled)
data_size_bytes: u64Size of the version data
Trait Implementations§
Source§impl Clone for DocumentVersion
impl Clone for DocumentVersion
Source§fn clone(&self) -> DocumentVersion
fn clone(&self) -> DocumentVersion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DocumentVersion
impl Debug 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
Auto Trait Implementations§
impl Freeze for DocumentVersion
impl RefUnwindSafe for DocumentVersion
impl Send for DocumentVersion
impl Sync for DocumentVersion
impl Unpin 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