pub struct VersionHistory {
pub document_id: String,
pub versions: VecDeque<DocumentVersion>,
pub current_version: String,
pub branches: HashMap<String, String>,
pub version_tree: HashMap<String, Vec<String>>,
pub metadata: Metadata,
pub last_updated: DateTime<Utc>,
}Expand description
Version history for a document
Fields§
§document_id: StringDocument ID
versions: VecDeque<DocumentVersion>All versions (ordered by version number)
current_version: StringCurrent active version
branches: HashMap<String, String>Branch information
version_tree: HashMap<String, Vec<String>>Version tree (parent-child relationships)
metadata: MetadataHistory metadata
last_updated: DateTime<Utc>Last updated timestamp
Trait Implementations§
Source§impl Clone for VersionHistory
impl Clone for VersionHistory
Source§fn clone(&self) -> VersionHistory
fn clone(&self) -> VersionHistory
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 VersionHistory
impl Debug for VersionHistory
Source§impl<'de> Deserialize<'de> for VersionHistory
impl<'de> Deserialize<'de> for VersionHistory
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 VersionHistory
impl RefUnwindSafe for VersionHistory
impl Send for VersionHistory
impl Sync for VersionHistory
impl Unpin for VersionHistory
impl UnwindSafe for VersionHistory
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