bookclerk_library::entities::job_secret_handoffs
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). |
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.
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 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-macroslease_generation: Generated by sea-orm-macroskind: Generated by sea-orm-macrosprovider: Generated by sea-orm-macrosaccount_id: Generated by sea-orm-macrosname: Generated by sea-orm-macrosnode_id: Generated by sea-orm-macroshanded_at: 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 {
JobId,
LeaseGeneration,
Kind,
Provider,
AccountId,
Name,
NodeId,
HandedAt,
}
Generated by sea-orm-macros
Variants
JobId: Generated by sea-orm-macrosLeaseGeneration: Generated by sea-orm-macrosKind: Generated by sea-orm-macrosProvider: Generated by sea-orm-macrosAccountId: Generated by sea-orm-macrosName: Generated by sea-orm-macrosNodeId: Generated by sea-orm-macrosHandedAt: Generated by sea-orm-macros
Implements: Clone, ColumnTrait, Copy, Debug, FromStr, Iden, IdenStatic, IntoEnumIterator
pub enum PrimaryKey {
JobId,
LeaseGeneration,
Kind,
Provider,
AccountId,
Name,
}
Generated by sea-orm-macros
Variants
JobId: Generated by sea-orm-macrosLeaseGeneration: Generated by sea-orm-macrosKind: Generated by sea-orm-macrosProvider: Generated by sea-orm-macrosAccountId: Generated by sea-orm-macrosName: Generated by sea-orm-macros
Implements: Clone, Copy, Debug, Iden, IdenStatic, IntoEnumIterator, PrimaryKeyToColumn, PrimaryKeyTrait
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