pub struct PGRaiseMessage {
pub timestamp: Timestamp,
pub level: PGRaiseLevel,
pub message: String,
pub details: DbError,
}
Expand description
§Message received when a raise <level> <message>
is issued on PostgreSQL.
Postgres logs are created by issuing RAISE <level> <message>
commands
within your functions, stored procedures and scripts. When such a command is
issued, [PGNotifyingClient
] receives a notification even if the call is in
progress, which allows the caller to capture the execution log in realtime.
Here we extract the level and message fields but all of the detailed
location information can be found in the details
field.
More details on how to raise log messages can be found (here)[https://www.postgresql.org/docs/current/plpgsql-errors-and-messages.html].
Fields§
§timestamp: Timestamp
§level: PGRaiseLevel
§message: String
§details: DbError
Trait Implementations§
Source§impl Clone for PGRaiseMessage
impl Clone for PGRaiseMessage
Source§fn clone(&self) -> PGRaiseMessage
fn clone(&self) -> PGRaiseMessage
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 PGRaiseMessage
impl Debug for PGRaiseMessage
Source§impl Display for PGRaiseMessage
impl Display for PGRaiseMessage
Source§impl From<DbError> for PGRaiseMessage
impl From<DbError> for PGRaiseMessage
Auto Trait Implementations§
impl Freeze for PGRaiseMessage
impl RefUnwindSafe for PGRaiseMessage
impl Send for PGRaiseMessage
impl Sync for PGRaiseMessage
impl Unpin for PGRaiseMessage
impl UnwindSafe for PGRaiseMessage
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