pub enum Replacement {
Write(WriteId),
Rules(Vec<RemovalRule>),
SchemaChange {
version: u32,
},
DataDependency {
write: WriteId,
sources: Vec<ChangeSource>,
},
NotAuthorized {
write: WriteId,
reason: RowAuthorizationFailure,
},
}Expand description
The write, rules, breaking schema version, dropped data or refused permission responsible for a loss.
Variants§
Write(WriteId)
A write that had not read the displaced value.
Rules(Vec<RemovalRule>)
All removal rules holding for the row.
SchemaChange
A breaking schema change the write had not read.
DataDependency
This original row change used dropped data (§9.5, §14.1). Sources name generation/setter changes, additional direct-execution sources, then verified foreign-key causes (§9.6), in authored role/execution order, with repeats. Row identity distinguishes several causes in the same write. An empty delete still names its write.
Fields
§
sources: Vec<ChangeSource>The failed sources, in role order.
NotAuthorized
A member’s row change lacked permission; other changes may apply (§9.6).
Fields
§
reason: RowAuthorizationFailureWhy it was refused.
Trait Implementations§
Source§impl Clone for Replacement
impl Clone for Replacement
Source§fn clone(&self) -> Replacement
fn clone(&self) -> Replacement
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 Replacement
impl Debug for Replacement
Source§impl PartialEq for Replacement
impl PartialEq for Replacement
impl StructuralPartialEq for Replacement
Auto Trait Implementations§
impl Freeze for Replacement
impl RefUnwindSafe for Replacement
impl Send for Replacement
impl Sync for Replacement
impl Unpin for Replacement
impl UnsafeUnpin for Replacement
impl UnwindSafe for Replacement
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