#[non_exhaustive]pub enum OpType {
Insert,
Update,
Delete,
BootstrapInsert,
}Expand description
The operation type for row change messages.
Non-exhaustive for the same reason as Message: a new row-carrying message type would
otherwise make Message::op_type return a variant that breaks existing matches.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Insert
Row insertion.
Update
Row update.
Delete
Row deletion.
BootstrapInsert
Bootstrap row insert (initial snapshot).
Trait Implementations§
impl Copy for OpType
Source§impl<'de> Deserialize<'de> for OpType
impl<'de> Deserialize<'de> for OpType
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
impl Eq for OpType
impl StructuralPartialEq for OpType
Auto Trait Implementations§
impl Freeze for OpType
impl RefUnwindSafe for OpType
impl Send for OpType
impl Sync for OpType
impl Unpin for OpType
impl UnsafeUnpin for OpType
impl UnwindSafe for OpType
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