bookclerk_library::entities::job_secret_handoffs

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

Last updated View as Markdown

SeaORM entity for job_secret_handoffs: which store-account secrets a Host was handed with a job, per lease generation.

Recorded when the claim hands the secrets over and read when the Host writes a refreshed token back, so a write-back is accepted only for a secret that went out under that exact fence. Carries no secret material.

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 (queried by job_id, not modeled as an FK edge).

Structs

Model

pub struct Model {
    pub job_id: String,
    pub lease_generation: i64,
    pub kind: String,
    pub provider: String,
    pub account_id: String,
    pub name: String,
    pub node_id: String,
    pub handed_at: String,
}

Row shape for this table (DeriveEntityModel).

Fields

  • job_id: Job the secret was handed with (jobs.id).
  • lease_generation: Lease generation of the claim that handed it.
  • kind: Secret kind (source_auth, ...).
  • provider: Plugin key that owns the secret.
  • account_id: Store account id.
  • name: Logical secret name.
  • node_id: Node the secret was handed to.
  • handed_at: RFC 3339 time of the handoff.

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 job_id: ActiveValue<String>,
    pub lease_generation: ActiveValue<i64>,
    pub kind: ActiveValue<String>,
    pub provider: ActiveValue<String>,
    pub account_id: ActiveValue<String>,
    pub name: ActiveValue<String>,
    pub node_id: ActiveValue<String>,
    pub handed_at: ActiveValue<String>,
}

Generated by sea-orm-macros

Fields

  • job_id: Generated by sea-orm-macros
  • lease_generation: Generated by sea-orm-macros
  • kind: Generated by sea-orm-macros
  • provider: Generated by sea-orm-macros
  • account_id: Generated by sea-orm-macros
  • name: Generated by sea-orm-macros
  • node_id: Generated by sea-orm-macros
  • handed_at: 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 {
    JobId,
    LeaseGeneration,
    Kind,
    Provider,
    AccountId,
    Name,
    NodeId,
    HandedAt,
}

Generated by sea-orm-macros

Variants

  • JobId: Generated by sea-orm-macros
  • LeaseGeneration: Generated by sea-orm-macros
  • Kind: Generated by sea-orm-macros
  • Provider: Generated by sea-orm-macros
  • AccountId: Generated by sea-orm-macros
  • Name: Generated by sea-orm-macros
  • NodeId: Generated by sea-orm-macros
  • HandedAt: Generated by sea-orm-macros

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

PrimaryKey

pub enum PrimaryKey {
    JobId,
    LeaseGeneration,
    Kind,
    Provider,
    AccountId,
    Name,
}

Generated by sea-orm-macros

Variants

  • JobId: Generated by sea-orm-macros
  • LeaseGeneration: Generated by sea-orm-macros
  • Kind: Generated by sea-orm-macros
  • Provider: Generated by sea-orm-macros
  • AccountId: Generated by sea-orm-macros
  • Name: Generated by sea-orm-macros

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

Relation

pub enum Relation {}

Declared SeaORM relations (queried by job_id, not modeled as an FK edge).

Implements: Clone, Copy, Debug, IntoEnumIterator, RelationTrait

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