pub struct Operation { /* private fields */ }Expand description
One exact state transition. The complete output snapshot makes omission impossible: the declared operation cannot claim a target it does not produce.
Implementations§
Source§impl Operation
impl Operation
Sourcepub fn new(before: RelationId, after: Schema, kind: OperationKind) -> Self
pub fn new(before: RelationId, after: Schema, kind: OperationKind) -> Self
Creates an operation from its exact input identity and output snapshot.
Sourcepub fn before(&self) -> &RelationId
pub fn before(&self) -> &RelationId
Required input schema identity.
Sourcepub fn kind(&self) -> &OperationKind
pub fn kind(&self) -> &OperationKind
Described edit.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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