pub struct UpdateMessage<'a> {
pub transaction_id: Option<i32>,
pub oid: i32,
pub key: Option<TupleData<'a>>,
pub old: Option<TupleData<'a>>,
pub new: TupleData<'a>,
}
Fields§
§transaction_id: Option<i32>
Xid of the transaction (only present for streamed transactions).
NOTE: This field is available since protocol version 2.
oid: i32
OID of the relation corresponding to the ID in the relation message.
key: Option<TupleData<'a>>
This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index.
old: Option<TupleData<'a>>
This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL.
new: TupleData<'a>
TupleData message part representing the contents of a new tuple.
Auto Trait Implementations§
impl<'a> Freeze for UpdateMessage<'a>
impl<'a> RefUnwindSafe for UpdateMessage<'a>
impl<'a> Send for UpdateMessage<'a>
impl<'a> Sync for UpdateMessage<'a>
impl<'a> Unpin for UpdateMessage<'a>
impl<'a> UnwindSafe for UpdateMessage<'a>
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