#[non_exhaustive]pub enum Message {
Insert(RowChange),
Update(RowChange),
Delete(RowChange),
BootstrapInsert(RowChange),
BootstrapStart(ControlMessage),
BootstrapComplete(ControlMessage),
TableCreate(TableCreateChange),
TableAlter(TableAlterChange),
TableDrop(TableDropChange),
DatabaseCreate(DatabaseChange),
DatabaseAlter(DatabaseChange),
DatabaseDrop(DatabaseDropChange),
}Expand description
A Maxwell CDC message parsed from JSON.
Non-exhaustive: Maxwell has added message types before, and a caller matching on this enum must carry a catch-all arm so a new one is not a breaking change here.
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(RowChange)
Row insertion into a table.
Update(RowChange)
Row update in a table.
Delete(RowChange)
Row deletion from a table.
BootstrapInsert(RowChange)
Row inserted during bootstrap (initial snapshot).
BootstrapStart(ControlMessage)
Start of bootstrap period for a table.
BootstrapComplete(ControlMessage)
End of bootstrap period for a table.
TableCreate(TableCreateChange)
Table created.
TableAlter(TableAlterChange)
Table altered.
TableDrop(TableDropChange)
Table dropped.
DatabaseCreate(DatabaseChange)
Database created.
DatabaseAlter(DatabaseChange)
Database altered.
DatabaseDrop(DatabaseDropChange)
Database dropped.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
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 Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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