pub struct ControlMessage {
pub database: String,
pub table: String,
pub ts: Option<i64>,
pub push_ts: Option<Number>,
pub comment: Option<String>,
pub data: Map<String, Value>,
pub primary_key: Option<Vec<Value>>,
pub primary_key_columns: Option<Vec<String>>,
pub extra: Map<String, Value>,
}Expand description
A control message (bootstrap start/complete).
Fields§
§database: StringDatabase name.
table: StringTable name.
ts: Option<i64>Event timestamp in seconds since epoch.
push_ts: Option<Number>When Maxwell produced the message, in seconds with a fractional part. A Number
because Maxwell writes it as an arbitrary-precision decimal.
comment: Option<String>Comment attached to the originating bootstrap task.
data: Map<String, Value>Event data (typically empty for control messages).
primary_key: Option<Vec<Value>>Primary key values.
primary_key_columns: Option<Vec<String>>Primary key column names.
extra: Map<String, Value>Fields Maxwell emitted that this crate does not model, kept verbatim. Keys must not collide with the named fields above, or serializing writes them twice.
Trait Implementations§
Source§impl Clone for ControlMessage
impl Clone for ControlMessage
Source§impl Debug for ControlMessage
impl Debug for ControlMessage
Source§impl Default for ControlMessage
impl Default for ControlMessage
Source§impl<'de> Deserialize<'de> for ControlMessage
impl<'de> Deserialize<'de> for ControlMessage
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 ControlMessage
Source§impl Hash for ControlMessage
impl Hash for ControlMessage
Source§impl PartialEq for ControlMessage
impl PartialEq for ControlMessage
Source§impl Serialize for ControlMessage
impl Serialize for ControlMessage
impl StructuralPartialEq for ControlMessage
Auto Trait Implementations§
impl Freeze for ControlMessage
impl RefUnwindSafe for ControlMessage
impl Send for ControlMessage
impl Sync for ControlMessage
impl Unpin for ControlMessage
impl UnsafeUnpin for ControlMessage
impl UnwindSafe for ControlMessage
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