zynagent-first application framework

Back to the API reference

zyn.Notification#

/// The execution capability passed to a notification handler.
pub const Notification = struct {
    db: Database,
    logger: *const Logger,
    io: Io,
    arena: std.mem.Allocator,

    /// Renders and stages this notification's email for delivery after the handler succeeds.
    pub fn email(
        self: *Notification,
        params: anytype,
        options: Email.Options,
    ) !void;
};