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: TypeCodetimestamp: u32gtid: Option<Gtid>logical_timestamp: Option<LogicalTimestamp>schema_name: Option<String>table_name: Option<String>rows: Vec<RowEvent>query: Option<String>offset: u64

Trait Implementations

Formats the value using the given formatter. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.