Struct nettu_scheduler_domain::Reminder[][src]

pub struct Reminder {
    pub event_id: ID,
    pub account_id: ID,
    pub remind_at: i64,
    pub version: i64,
    pub identifier: String,
}
Expand description

A Reminder represents a specific time before the occurrence a CalendarEvent at which the owner Account should be notified.

Fields

event_id: ID

The CalendarEvent this Reminder is associated with

account_id: ID

The Account this Reminder is associated with and which should receive a webhook notification at remind_at

remind_at: i64

The timestamp at which the Account should be notified. This is usually some minutes before a CalendarEvent

version: i64

This field is needed to avoid sending duplicate Reminders to the Account. For more info see the db schema comments

identifier: String

User defined identifier to be able to separate reminders at same timestamp for the same event. For example: “ask_for_booking_review” or “send_invoice”

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.