bookclerk_library::entities::domain_events
SeaORM entity for the durable domain_events outbox.
| 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 (deliveries are queried by event_id). |
pub struct Model {
pub id: String,
pub event_type: String,
pub schema_version: i64,
pub occurred_at: String,
pub account_id: String,
pub source: String,
pub correlation_id: String,
pub causation_id: String,
pub dedup_key: String,
pub payload: String,
pub ordering_key: String,
pub dispatch_state: String,
pub created_at: String,
pub wake_pending: i64,
pub wake_lease_owner: Option<String>,
pub wake_lease_expires_at: Option<String>,
pub wake_cursor_at: String,
pub wake_cursor_id: String,
pub dispatch_snapshot_json: String,
pub queue_name: String,
pub content_type: String,
pub deliver_after: String,
}
Row shape for this table (DeriveEntityModel).
Fields
id: Stable event id (UUID).event_type: Event type (book_acquired, …).schema_version: Payload schema version.occurred_at: RFC 3339 occurrence time.account_id: Tenant / account id, when known.source: Producer plugin id (audible, …); empty when unknown.correlation_id: Trace correlation id.causation_id: Causing event or job id.dedup_key: Producer idempotency key unique with(account_id, source, event_type).payload: Bounded JSON payload (never media bytes).ordering_key: Producer FIFO key copied onto each delivery.dispatch_state:pendinguntil deliveries are created, thendispatched.created_at: RFC 3339 insert time.wake_pending:1until matching suspended deliveries have been woken (or none exist).wake_lease_owner: Worker that currently holds the wake-slice lease.wake_lease_expires_at: RFC 3339 wake-slice lease expiry.wake_cursor_at:(created_at, id)cursor for the next wake delivery page.wake_cursor_id: Delivery id cursor paired withSelf::wake_cursor_at.dispatch_snapshot_json: Frozen JSON array of plugin ids for paged dispatch receipts.queue_name: Queue this row belongs to (core.eventsfor the domain-event bus).content_type: Body encoding ofpayload(json,text, orbytesas base64).deliver_after: RFC 3339 earliest delivery time for delayed queue messages; empty = now.
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_type: ActiveValue<String>,
pub schema_version: ActiveValue<i64>,
pub occurred_at: ActiveValue<String>,
pub account_id: ActiveValue<String>,
pub source: ActiveValue<String>,
pub correlation_id: ActiveValue<String>,
pub causation_id: ActiveValue<String>,
pub dedup_key: ActiveValue<String>,
pub payload: ActiveValue<String>,
pub ordering_key: ActiveValue<String>,
pub dispatch_state: ActiveValue<String>,
pub created_at: ActiveValue<String>,
pub wake_pending: ActiveValue<i64>,
pub wake_lease_owner: ActiveValue<Option<String>>,
pub wake_lease_expires_at: ActiveValue<Option<String>>,
pub wake_cursor_at: ActiveValue<String>,
pub wake_cursor_id: ActiveValue<String>,
pub dispatch_snapshot_json: ActiveValue<String>,
pub queue_name: ActiveValue<String>,
pub content_type: ActiveValue<String>,
pub deliver_after: ActiveValue<String>,
}
Generated by sea-orm-macros
Fields
id: Generated by sea-orm-macrosevent_type: Generated by sea-orm-macrosschema_version: Generated by sea-orm-macrosoccurred_at: Generated by sea-orm-macrosaccount_id: Generated by sea-orm-macrossource: Generated by sea-orm-macroscorrelation_id: Generated by sea-orm-macroscausation_id: Generated by sea-orm-macrosdedup_key: Generated by sea-orm-macrospayload: Generated by sea-orm-macrosordering_key: Generated by sea-orm-macrosdispatch_state: Generated by sea-orm-macroscreated_at: Generated by sea-orm-macroswake_pending: Generated by sea-orm-macroswake_lease_owner: Generated by sea-orm-macroswake_lease_expires_at: Generated by sea-orm-macroswake_cursor_at: Generated by sea-orm-macroswake_cursor_id: Generated by sea-orm-macrosdispatch_snapshot_json: Generated by sea-orm-macrosqueue_name: Generated by sea-orm-macroscontent_type: Generated by sea-orm-macrosdeliver_after: 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,
EventType,
SchemaVersion,
OccurredAt,
AccountId,
Source,
CorrelationId,
CausationId,
DedupKey,
Payload,
OrderingKey,
DispatchState,
CreatedAt,
WakePending,
WakeLeaseOwner,
WakeLeaseExpiresAt,
WakeCursorAt,
WakeCursorId,
DispatchSnapshotJson,
QueueName,
ContentType,
DeliverAfter,
}
Generated by sea-orm-macros
Variants
Id: Generated by sea-orm-macrosEventType: Generated by sea-orm-macrosSchemaVersion: Generated by sea-orm-macrosOccurredAt: Generated by sea-orm-macrosAccountId: Generated by sea-orm-macrosSource: Generated by sea-orm-macrosCorrelationId: Generated by sea-orm-macrosCausationId: Generated by sea-orm-macrosDedupKey: Generated by sea-orm-macrosPayload: Generated by sea-orm-macrosOrderingKey: Generated by sea-orm-macrosDispatchState: Generated by sea-orm-macrosCreatedAt: Generated by sea-orm-macrosWakePending: Generated by sea-orm-macrosWakeLeaseOwner: Generated by sea-orm-macrosWakeLeaseExpiresAt: Generated by sea-orm-macrosWakeCursorAt: Generated by sea-orm-macrosWakeCursorId: Generated by sea-orm-macrosDispatchSnapshotJson: Generated by sea-orm-macrosQueueName: Generated by sea-orm-macrosContentType: Generated by sea-orm-macrosDeliverAfter: 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 (deliveries are queried by event_id).
Implements: Clone, Copy, Debug, IntoEnumIterator, RelationTrait
Generated from crates/bookclerk-library at main · View as Markdown