pub struct VersionHistory {
pub id: String,
pub origin: HistoryOrigin,
}Expand description
The history in which a database issues record versions.
A version (a document’s __version, or a row’s storage sequence) means
something only within the history that issued it. A restore starts a new
history: the restored database holds the backup’s records, but versions it
goes on to issue can repeat numbers the backed-up database already issued
after the backup. A version token names its history, so a token from
another history can never fence a write here. A replica bootstrapped from
its authority’s snapshot shares the authority’s history.
Fields§
§id: String128 random bits, hex.
origin: HistoryOriginImplementations§
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 (const: unstable) · 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 Default for VersionHistory
impl Default for VersionHistory
Source§fn default() -> VersionHistory
fn default() -> VersionHistory
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VersionHistory
impl<'de> Deserialize<'de> for VersionHistory
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VersionHistory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VersionHistory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for VersionHistory
Source§impl PartialEq for VersionHistory
impl PartialEq for VersionHistory
Source§impl Serialize for VersionHistory
impl Serialize for VersionHistory
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for VersionHistory
Auto Trait Implementations§
impl Freeze for VersionHistory
impl RefUnwindSafe for VersionHistory
impl Send for VersionHistory
impl Sync for VersionHistory
impl Unpin for VersionHistory
impl UnsafeUnpin 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