pub struct BinlogEvent {
pub type_code: TypeCode,
pub timestamp: u32,
pub gtid: Option<Gtid>,
pub logical_timestamp: Option<LogicalTimestamp>,
pub schema_name: Option<String>,
pub table_name: Option<String>,
pub rows: Vec<RowEvent>,
pub query: Option<String>,
pub offset: u64,
}
Expand description
A binlog event as returned by EventIterator
. Filters out internal events
like the TableMapEvent and simplifies mapping GTIDs to individual events.
Fields§
§type_code: TypeCode
§timestamp: u32
§gtid: Option<Gtid>
§logical_timestamp: Option<LogicalTimestamp>
§schema_name: Option<String>
§table_name: Option<String>
§rows: Vec<RowEvent>
§query: Option<String>
§offset: u64
Trait Implementations§
Source§impl Debug for BinlogEvent
impl Debug for BinlogEvent
Auto Trait Implementations§
impl Freeze for BinlogEvent
impl RefUnwindSafe for BinlogEvent
impl Send for BinlogEvent
impl Sync for BinlogEvent
impl Unpin for BinlogEvent
impl UnwindSafe for BinlogEvent
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