pub struct PGNotifyMessage {
pub timestamp: Timestamp,
pub process_id: i32,
pub channel: String,
pub payload: String,
}
Expand description
Message received when a NOTIFY [channel] [payload]
is issued on PostgreSQL.
Postgres notifications contain a string payload on a named channel.
It also specifies the server-side process id of the notifying process.
To this we add a timestamp, which is either an chrono::DateTime<Utc>
or std::time::SystemTime
depending on the chrono
feature flag.
More details on the postgres notification can be found here.
Fields§
§timestamp: Timestamp
§process_id: i32
§channel: String
§payload: String
Trait Implementations§
Source§impl Clone for PGNotifyMessage
impl Clone for PGNotifyMessage
Source§fn clone(&self) -> PGNotifyMessage
fn clone(&self) -> PGNotifyMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PGNotifyMessage
impl Debug for PGNotifyMessage
Source§impl Display for PGNotifyMessage
impl Display for PGNotifyMessage
Source§impl From<Notification> for PGNotifyMessage
impl From<Notification> for PGNotifyMessage
Source§fn from(note: Notification) -> Self
fn from(note: Notification) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PGNotifyMessage
impl RefUnwindSafe for PGNotifyMessage
impl Send for PGNotifyMessage
impl Sync for PGNotifyMessage
impl Unpin for PGNotifyMessage
impl UnwindSafe for PGNotifyMessage
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