pub struct DeletionRecord {
pub entity_type: EntityType,
pub entity_id: String,
pub project_path: String,
pub deleted_at: String,
pub deleted_by: String,
}Expand description
A deletion record for sync.
When a record is deleted locally, a deletion record is created so that
imports on other machines can apply the deletion. Unlike data records,
deletions are stored in a separate deletions.jsonl file.
§Git-Friendly Design
Deletions accumulate in the JSONL file, providing a history of what was deleted. Git tracks when deletions were added, allowing teams to see what changed. Periodically, old deletions can be compacted (removed) once all machines have synced.
Fields§
§entity_type: EntityTypeThe type of entity that was deleted.
entity_id: StringThe ID of the deleted entity.
project_path: StringThe project path this deletion belongs to.
deleted_at: StringISO8601 timestamp when the deletion occurred.
deleted_by: StringActor who performed the deletion.
Trait Implementations§
Source§impl Clone for DeletionRecord
impl Clone for DeletionRecord
Source§fn clone(&self) -> DeletionRecord
fn clone(&self) -> DeletionRecord
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 DeletionRecord
impl Debug for DeletionRecord
Source§impl<'de> Deserialize<'de> for DeletionRecord
impl<'de> Deserialize<'de> for DeletionRecord
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 DeletionRecord
impl RefUnwindSafe for DeletionRecord
impl Send for DeletionRecord
impl Sync for DeletionRecord
impl Unpin for DeletionRecord
impl UnsafeUnpin for DeletionRecord
impl UnwindSafe for DeletionRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more