pub struct MigrationRecord {
pub node_id: String,
pub children_bytes: Vec<u8>,
}Expand description
A single graph node record in the canonical migration format.
All BEAM storage backends store the same logical data — a node_id
mapped to a Children map. The on-disk encoding varies (bare bytes
vs. NodeRecord-wrapped, string keys vs. prefixed keys), but the
semantic content is identical.
This struct is the “lingua franca”: every reader produces
Vec<MigrationRecord>, every writer accepts &[MigrationRecord].
The children_bytes field is always postcard(Children) — the bare
serialized form that redb and fjall store directly, and that persy
wraps in [NodeRecord].
Fields§
§node_id: StringThe graph node identifier (e.g. "users/alice", "" for root).
children_bytes: Vec<u8>Bare postcard(Children) bytes — the universal value format.
Trait Implementations§
Source§impl Clone for MigrationRecord
impl Clone for MigrationRecord
Source§fn clone(&self) -> MigrationRecord
fn clone(&self) -> MigrationRecord
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 moreAuto Trait Implementations§
impl Freeze for MigrationRecord
impl RefUnwindSafe for MigrationRecord
impl Send for MigrationRecord
impl Sync for MigrationRecord
impl Unpin for MigrationRecord
impl UnsafeUnpin for MigrationRecord
impl UnwindSafe for MigrationRecord
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