pub enum HistoryOrigin {
Genesis,
Restored,
}Expand description
How a database history began (docs/reference/version-tokens.md).
Variants§
Genesis
The database was created empty, or by an earlier release that had no history: every version it ever issued is in this history.
Restored
The database was restored from a backup. Versions issued before the restore, by the backed-up database or any other restore of it, are not in this history.
Trait Implementations§
Source§impl Clone for HistoryOrigin
impl Clone for HistoryOrigin
Source§fn clone(&self) -> HistoryOrigin
fn clone(&self) -> HistoryOrigin
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 moreimpl Copy for HistoryOrigin
Source§impl Debug for HistoryOrigin
impl Debug for HistoryOrigin
Source§impl Default for HistoryOrigin
impl Default for HistoryOrigin
Source§fn default() -> HistoryOrigin
fn default() -> HistoryOrigin
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HistoryOrigin
impl<'de> Deserialize<'de> for HistoryOrigin
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HistoryOrigin, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HistoryOrigin, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HistoryOrigin
Source§impl PartialEq for HistoryOrigin
impl PartialEq for HistoryOrigin
Source§impl Serialize for HistoryOrigin
impl Serialize for HistoryOrigin
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 HistoryOrigin
Auto Trait Implementations§
impl Freeze for HistoryOrigin
impl RefUnwindSafe for HistoryOrigin
impl Send for HistoryOrigin
impl Sync for HistoryOrigin
impl Unpin for HistoryOrigin
impl UnsafeUnpin for HistoryOrigin
impl UnwindSafe for HistoryOrigin
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