bookclerk_library::entities::event_deliveries
SeaORM entity for per-subscriber event_deliveries.
| Item | Kind | Summary |
|---|---|---|
Model |
struct | Row shape for this table (DeriveEntityModel). |
ColumnIter |
struct | An iterator over the variants of [Column] |
Entity |
struct | Generated by sea-orm-macros |
PrimaryKeyIter |
struct | An iterator over the variants of [PrimaryKey] |
ActiveModel |
struct | Generated by sea-orm-macros |
RelationIter |
struct | An iterator over the variants of [Relation] |
Column |
enum | Generated by sea-orm-macros |
PrimaryKey |
enum | Generated by sea-orm-macros |
Relation |
enum | Declared SeaORM relations (parent event is queried by event_id). |
pub struct Model {
pub id: String,
pub event_id: String,
pub plugin_id: String,
pub idempotency_key: String,
pub state: String,
pub attempt_count: i64,
pub max_attempts: i64,
pub lease_owner: Option<String>,
pub lease_expires_at: Option<String>,
pub lease_generation: i64,
pub run_after: String,
pub invocation_sequence: i64,
pub resume_pending: i64,
pub checkpoint_json: Option<String>,
pub checkpoint_schema_version: i64,
pub ordering_key: String,
pub outcome: Option<String>,
pub error_message: Option<String>,
pub created_at: String,
pub updated_at: String,
pub cancel_requested: i64,
pub resource_class: String,
pub wake_event_type: String,
pub wake_filter_json: String,
pub wake_grants_json: String,
pub queue_name: String,
}
Row shape for this table (DeriveEntityModel).
Fields
id: Stable delivery id ({event_id}:{plugin_id}).event_id: Parentsuper::domain_eventsid.plugin_id: Subscriber plugin id.idempotency_key: Stable idempotency key independent of attempt/generation.state: Lifecycle state (pending,running,acked,rejected,dead_letter).attempt_count: Number of times a worker has claimed this row (not incremented on resume).max_attempts: Maximum claims before a failure becomesdead_letter.lease_owner: Worker id that currently holds the lease, whenstate = running.lease_expires_at: RFC 3339 lease expiry.lease_generation: Per-claim generation used to fence heartbeat and finalization.run_after: RFC 3339 time after which a pending delivery may be claimed.invocation_sequence: Resume ordinal distinct fromSelf::attempt_count.resume_pending:1when the next claim should resume rather than increment attempt.checkpoint_json: Bounded checkpoint JSON fromEventResult::Suspended.checkpoint_schema_version: Checkpoint schema version.ordering_key: FIFO key (book uuidforbook_acquired).outcome: Terminal outcome (ack,reject,dead_letter) when finished.error_message: Operator-facing error or reject reason.created_at: RFC 3339 insert time.updated_at: RFC 3339 last-modified time.cancel_requested: Cooperative cancel flag (0/1); running workers check on heartbeat.resource_class: Concurrency class copied from the catalog (networktoday).wake_event_type: Event type that can wake this suspended delivery; empty = timestamp-only.wake_filter_json: Host-owned payload object filter JSON for event-wake; empty = type only.wake_grants_json: Host-derived wake grants JSON (schemaVersions+ intersected filter).queue_name: Queue of the parent event, copied at dispatch.
pub fn into_ex(self) -> Self
Generated by sea-orm-macros
Implements: Clone, Debug, Eq, From<Model>, FromQueryResult, IntoActiveModel<ActiveModel>, ModelTrait, PartialEq, TryFrom<ActiveModel>, TryIntoModel<Model>
pub struct ColumnIter {
/* private fields */
}
An iterator over the variants of Column
Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator
pub struct Entity;
Generated by sea-orm-macros
Implements: Clone, Copy, Debug, Default, EntityName, EntityTrait, Iden, IdenStatic
pub struct PrimaryKeyIter {
/* private fields */
}
An iterator over the variants of PrimaryKey
Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator
pub struct ActiveModel {
pub id: ActiveValue<String>,
pub event_id: ActiveValue<String>,
pub plugin_id: ActiveValue<String>,
pub idempotency_key: ActiveValue<String>,
pub state: ActiveValue<String>,
pub attempt_count: ActiveValue<i64>,
pub max_attempts: ActiveValue<i64>,
pub lease_owner: ActiveValue<Option<String>>,
pub lease_expires_at: ActiveValue<Option<String>>,
pub lease_generation: ActiveValue<i64>,
pub run_after: ActiveValue<String>,
pub invocation_sequence: ActiveValue<i64>,
pub resume_pending: ActiveValue<i64>,
pub checkpoint_json: ActiveValue<Option<String>>,
pub checkpoint_schema_version: ActiveValue<i64>,
pub ordering_key: ActiveValue<String>,
pub outcome: ActiveValue<Option<String>>,
pub error_message: ActiveValue<Option<String>>,
pub created_at: ActiveValue<String>,
pub updated_at: ActiveValue<String>,
pub cancel_requested: ActiveValue<i64>,
pub resource_class: ActiveValue<String>,
pub wake_event_type: ActiveValue<String>,
pub wake_filter_json: ActiveValue<String>,
pub wake_grants_json: ActiveValue<String>,
pub queue_name: ActiveValue<String>,
}
Generated by sea-orm-macros
Fields
id: Generated by sea-orm-macrosevent_id: Generated by sea-orm-macrosplugin_id: Generated by sea-orm-macrosidempotency_key: Generated by sea-orm-macrosstate: Generated by sea-orm-macrosattempt_count: Generated by sea-orm-macrosmax_attempts: Generated by sea-orm-macroslease_owner: Generated by sea-orm-macroslease_expires_at: Generated by sea-orm-macroslease_generation: Generated by sea-orm-macrosrun_after: Generated by sea-orm-macrosinvocation_sequence: Generated by sea-orm-macrosresume_pending: Generated by sea-orm-macroscheckpoint_json: Generated by sea-orm-macroscheckpoint_schema_version: Generated by sea-orm-macrosordering_key: Generated by sea-orm-macrosoutcome: Generated by sea-orm-macroserror_message: Generated by sea-orm-macroscreated_at: Generated by sea-orm-macrosupdated_at: Generated by sea-orm-macroscancel_requested: Generated by sea-orm-macrosresource_class: Generated by sea-orm-macroswake_event_type: Generated by sea-orm-macroswake_filter_json: Generated by sea-orm-macroswake_grants_json: Generated by sea-orm-macrosqueue_name: Generated by sea-orm-macros
Implements: ActiveModelBehavior, ActiveModelTrait, Clone, Debug, Default, From<Model>, IntoActiveModel<ActiveModel>, PartialEq, TryFrom<ActiveModel>, TryIntoModel<Model>
pub struct RelationIter {
/* private fields */
}
An iterator over the variants of Relation
Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator
pub enum Column {
Id,
EventId,
PluginId,
IdempotencyKey,
State,
AttemptCount,
MaxAttempts,
LeaseOwner,
LeaseExpiresAt,
LeaseGeneration,
RunAfter,
InvocationSequence,
ResumePending,
CheckpointJson,
CheckpointSchemaVersion,
OrderingKey,
Outcome,
ErrorMessage,
CreatedAt,
UpdatedAt,
CancelRequested,
ResourceClass,
WakeEventType,
WakeFilterJson,
WakeGrantsJson,
QueueName,
}
Generated by sea-orm-macros
Variants
Id: Generated by sea-orm-macrosEventId: Generated by sea-orm-macrosPluginId: Generated by sea-orm-macrosIdempotencyKey: Generated by sea-orm-macrosState: Generated by sea-orm-macrosAttemptCount: Generated by sea-orm-macrosMaxAttempts: Generated by sea-orm-macrosLeaseOwner: Generated by sea-orm-macrosLeaseExpiresAt: Generated by sea-orm-macrosLeaseGeneration: Generated by sea-orm-macrosRunAfter: Generated by sea-orm-macrosInvocationSequence: Generated by sea-orm-macrosResumePending: Generated by sea-orm-macrosCheckpointJson: Generated by sea-orm-macrosCheckpointSchemaVersion: Generated by sea-orm-macrosOrderingKey: Generated by sea-orm-macrosOutcome: Generated by sea-orm-macrosErrorMessage: Generated by sea-orm-macrosCreatedAt: Generated by sea-orm-macrosUpdatedAt: Generated by sea-orm-macrosCancelRequested: Generated by sea-orm-macrosResourceClass: Generated by sea-orm-macrosWakeEventType: Generated by sea-orm-macrosWakeFilterJson: Generated by sea-orm-macrosWakeGrantsJson: Generated by sea-orm-macrosQueueName: Generated by sea-orm-macros
Implements: Clone, ColumnTrait, Copy, Debug, FromStr, Iden, IdenStatic, IntoEnumIterator
pub enum PrimaryKey {
Id,
}
Generated by sea-orm-macros
Variants
Id: Generated by sea-orm-macros
Implements: Clone, Copy, Debug, Iden, IdenStatic, IntoEnumIterator, PrimaryKeyToColumn, PrimaryKeyTrait
pub enum Relation {}
Declared SeaORM relations (parent event is queried by event_id).
Implements: Clone, Copy, Debug, IntoEnumIterator, RelationTrait
Generated from crates/bookclerk-library at main · View as Markdown