pub struct JournalRecord<T> {
pub transition: GenericTransition<T>,
pub name_only: bool,
pub names: Vec<NameChange<T>>,
}Expand description
A row transition plus optional name state, or an independent name write. Use this complete value for recovery, archives and version movement.
Fields§
§transition: GenericTransition<T>§name_only: bool§names: Vec<NameChange<T>>Implementations§
Source§impl<T: LinkReference> JournalRecord<T>
impl<T: LinkReference> JournalRecord<T>
Sourcepub fn serialize(&self) -> String
pub fn serialize(&self) -> String
Row-only records retain the exact existing v1 encoding. Complete v2
records append an explicit replay mode and sorted name changes. Names
are UTF-16 hex, - is absent, and empty hex is a present empty name.
pub fn parse(text: &str) -> Result<Self, LinkError>
Methods from Deref<Target = GenericTransition<T>>§
pub const SCHEMA_VERSION: &'static str = "v1"
Trait Implementations§
Source§impl<T: Clone> Clone for JournalRecord<T>
impl<T: Clone> Clone for JournalRecord<T>
Source§impl<T: Debug> Debug for JournalRecord<T>
impl<T: Debug> Debug for JournalRecord<T>
Source§impl<T> Deref for JournalRecord<T>
impl<T> Deref for JournalRecord<T>
impl<T: Eq> Eq for JournalRecord<T>
Source§impl<T> From<GenericTransition<T>> for JournalRecord<T>
impl<T> From<GenericTransition<T>> for JournalRecord<T>
Source§fn from(transition: GenericTransition<T>) -> Self
fn from(transition: GenericTransition<T>) -> Self
Converts to this type from the input type.
Source§impl<T: PartialEq> PartialEq for JournalRecord<T>
impl<T: PartialEq> PartialEq for JournalRecord<T>
impl<T: PartialEq> StructuralPartialEq for JournalRecord<T>
Auto Trait Implementations§
impl<T> Freeze for JournalRecord<T>where
T: Freeze,
impl<T> RefUnwindSafe for JournalRecord<T>where
T: RefUnwindSafe,
impl<T> Send for JournalRecord<T>where
T: Send,
impl<T> Sync for JournalRecord<T>where
T: Sync,
impl<T> Unpin for JournalRecord<T>where
T: Unpin,
impl<T> UnsafeUnpin for JournalRecord<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for JournalRecord<T>where
T: UnwindSafe,
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