bookclerk_library::entities::bookclerk_receipts

Development These docs follow the development version and change with every merge.

Last updated View as Markdown

SeaORM entity for durable atomic result receipts.

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 (none unless FK edges are modeled).

Structs

Model

pub struct Model {
    pub operation_id: String,
    pub operation_kind: String,
    pub request_hash: String,
    pub status: String,
    pub payload: Option<String>,
    pub created_at: String,
    pub expires_at: String,
    pub consume_key: Option<String>,
}

Row shape for this table (DeriveEntityModel).

Fields

  • operation_id: Caller-chosen idempotency key (operationId).
  • operation_kind: Named operation tag (deleteUser, takeOidcRpState, …).
  • request_hash: SHA-256 hex digest of the canonical operation JSON.
  • status: Application status stored with the first commit.
  • payload: JSON payload when the first commit produced one.
  • created_at: RFC 3339 timestamp when the receipt was first written.
  • expires_at: RFC 3339 expiry; bounded cleanup deletes older rows.
  • consume_key: Unique consume-once token (oidc:<hash>, webauthn:<id>:<kind>).

Model::into_ex

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>

ColumnIter

pub struct ColumnIter {
    /* private fields */
}

An iterator over the variants of Column

Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator

Entity

pub struct Entity;

Generated by sea-orm-macros

Implements: Clone, Copy, Debug, Default, EntityName, EntityTrait, Iden, IdenStatic

PrimaryKeyIter

pub struct PrimaryKeyIter {
    /* private fields */
}

An iterator over the variants of PrimaryKey

Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator

ActiveModel

pub struct ActiveModel {
    pub operation_id: ActiveValue<String>,
    pub operation_kind: ActiveValue<String>,
    pub request_hash: ActiveValue<String>,
    pub status: ActiveValue<String>,
    pub payload: ActiveValue<Option<String>>,
    pub created_at: ActiveValue<String>,
    pub expires_at: ActiveValue<String>,
    pub consume_key: ActiveValue<Option<String>>,
}

Generated by sea-orm-macros

Fields

  • operation_id: Generated by sea-orm-macros
  • operation_kind: Generated by sea-orm-macros
  • request_hash: Generated by sea-orm-macros
  • status: Generated by sea-orm-macros
  • payload: Generated by sea-orm-macros
  • created_at: Generated by sea-orm-macros
  • expires_at: Generated by sea-orm-macros
  • consume_key: Generated by sea-orm-macros

Implements: ActiveModelBehavior, ActiveModelTrait, Clone, Debug, Default, From<Model>, IntoActiveModel<ActiveModel>, PartialEq, TryFrom<ActiveModel>, TryIntoModel<Model>

RelationIter

pub struct RelationIter {
    /* private fields */
}

An iterator over the variants of Relation

Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator

Enums

Column

pub enum Column {
    OperationId,
    OperationKind,
    RequestHash,
    Status,
    Payload,
    CreatedAt,
    ExpiresAt,
    ConsumeKey,
}

Generated by sea-orm-macros

Variants

  • OperationId: Generated by sea-orm-macros
  • OperationKind: Generated by sea-orm-macros
  • RequestHash: Generated by sea-orm-macros
  • Status: Generated by sea-orm-macros
  • Payload: Generated by sea-orm-macros
  • CreatedAt: Generated by sea-orm-macros
  • ExpiresAt: Generated by sea-orm-macros
  • ConsumeKey: Generated by sea-orm-macros

Implements: Clone, ColumnTrait, Copy, Debug, FromStr, Iden, IdenStatic, IntoEnumIterator

PrimaryKey

pub enum PrimaryKey {
    OperationId,
}

Generated by sea-orm-macros

Variants

  • OperationId: Generated by sea-orm-macros

Implements: Clone, Copy, Debug, Iden, IdenStatic, IntoEnumIterator, PrimaryKeyToColumn, PrimaryKeyTrait

Relation

pub enum Relation {}

Declared SeaORM relations (none unless FK edges are modeled).

Implements: Clone, Copy, Debug, IntoEnumIterator, RelationTrait

Generated from crates/bookclerk-library at main · View as Markdown