pub struct EventTarget {
pub model: &'static str,
pub notify_subscribers: bool,
}Expand description
Where a write path enqueues a model event: the model’s name, and whether
the event must also be notified to subscribers (@@subscribe). A model
that only @@emits skips the notification, and with it Postgres’ commit
lock on NOTIFY.
Fields§
§model: &'static str§notify_subscribers: boolTrait Implementations§
Source§impl Clone for EventTarget
impl Clone for EventTarget
impl Copy for EventTarget
Source§impl Debug for EventTarget
impl Debug for EventTarget
impl Eq for EventTarget
Source§impl PartialEq for EventTarget
impl PartialEq for EventTarget
impl StructuralPartialEq for EventTarget
Auto Trait Implementations§
impl Forget for EventTarget
impl Freeze for EventTarget
impl RefUnwindSafe for EventTarget
impl Send for EventTarget
impl Sync for EventTarget
impl Unpin for EventTarget
impl UnsafeUnpin for EventTarget
impl UnwindSafe for EventTarget
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