pub struct Published {
pub event_id: String,
pub endpoints: usize,
/* private fields */
}Expand description
What Webhooks::publish produced. Append
Published::into_statements to the caller’s own db.batch_atomic(..);
nothing is written until that batch runs.
Fields§
§event_id: StringThe event’s identity, shared by every fan-out row of this one
event and sent as the Cratefield-Event-Id header, so a receiver
can dedupe the redeliveries at-least-once delivery promises.
endpoints: usizeHow many endpoints matched — how many statements there are, and how many POSTs the drain will eventually make.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Published
impl RefUnwindSafe for Published
impl Send for Published
impl Sync for Published
impl Unpin for Published
impl UnsafeUnpin for Published
impl UnwindSafe for Published
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