bookclerk_library::entities::encrypted_secrets
SeaORM entity for the encrypted_secrets table.
Retained in the schema and entities per the multi-storefront design; the
encryption / secrets-file removal work lives in crate::secrets.
| 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). |
pub struct Model {
pub id: i64,
pub kind: String,
pub provider: Option<String>,
pub account_type: String,
pub account_id: Option<String>,
pub name: String,
pub format: String,
pub ciphertext: Vec<u8>,
pub kdf_algorithm: Option<String>,
pub kdf_salt: Option<Vec<u8>>,
pub kdf_m_cost: Option<i64>,
pub kdf_t_cost: Option<i64>,
pub kdf_p_cost: Option<i64>,
pub cipher_algorithm: Option<String>,
pub cipher_nonce: Option<Vec<u8>>,
pub created_at: String,
pub updated_at: String,
}
Row shape for this table (DeriveEntityModel).
Fields
id: Surrogate primary key assigned by the database.kind: Secret kind discriminator (source_auth,s3, …).provider: External identity or integration provider id (for example ABS).account_type: Ownership namespace:crate::secrets::secret_account_type.account_id: Store or operator account id this row belongs to.name: Human-readable or logical name for this row.format: Sealing format tag (sealed-v1, legacyjson-encrypted, …).ciphertext: Encrypted payload bytes for this secret.kdf_algorithm: KDF algorithm id for legacy rows (for exampleargon2id).kdf_salt: Random salt for legacy Argon2 key derivation.kdf_m_cost: Argon2 memory cost in KiB for legacy rows.kdf_t_cost: Argon2 time cost (iterations) for legacy rows.kdf_p_cost: Argon2 parallel lane count stored for legacyjson-encryptedrows.cipher_algorithm: AEAD algorithm id (for examplexchacha20poly1305).cipher_nonce: AEAD nonce bytes used withciphertext.created_at: RFC 3339 timestamp when the row was inserted.updated_at: RFC 3339 timestamp when the row was last modified.
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<i64>,
pub kind: ActiveValue<String>,
pub provider: ActiveValue<Option<String>>,
pub account_type: ActiveValue<String>,
pub account_id: ActiveValue<Option<String>>,
pub name: ActiveValue<String>,
pub format: ActiveValue<String>,
pub ciphertext: ActiveValue<Vec<u8>>,
pub kdf_algorithm: ActiveValue<Option<String>>,
pub kdf_salt: ActiveValue<Option<Vec<u8>>>,
pub kdf_m_cost: ActiveValue<Option<i64>>,
pub kdf_t_cost: ActiveValue<Option<i64>>,
pub kdf_p_cost: ActiveValue<Option<i64>>,
pub cipher_algorithm: ActiveValue<Option<String>>,
pub cipher_nonce: ActiveValue<Option<Vec<u8>>>,
pub created_at: ActiveValue<String>,
pub updated_at: ActiveValue<String>,
}
Generated by sea-orm-macros
Fields
id: Generated by sea-orm-macroskind: Generated by sea-orm-macrosprovider: Generated by sea-orm-macrosaccount_type: Generated by sea-orm-macrosaccount_id: Generated by sea-orm-macrosname: Generated by sea-orm-macrosformat: Generated by sea-orm-macrosciphertext: Generated by sea-orm-macroskdf_algorithm: Generated by sea-orm-macroskdf_salt: Generated by sea-orm-macroskdf_m_cost: Generated by sea-orm-macroskdf_t_cost: Generated by sea-orm-macroskdf_p_cost: Generated by sea-orm-macroscipher_algorithm: Generated by sea-orm-macroscipher_nonce: Generated by sea-orm-macroscreated_at: Generated by sea-orm-macrosupdated_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 {
Id,
Kind,
Provider,
AccountType,
AccountId,
Name,
Format,
Ciphertext,
KdfAlgorithm,
KdfSalt,
KdfMCost,
KdfTCost,
KdfPCost,
CipherAlgorithm,
CipherNonce,
CreatedAt,
UpdatedAt,
}
Generated by sea-orm-macros
Variants
Id: Generated by sea-orm-macrosKind: Generated by sea-orm-macrosProvider: Generated by sea-orm-macrosAccountType: Generated by sea-orm-macrosAccountId: Generated by sea-orm-macrosName: Generated by sea-orm-macrosFormat: Generated by sea-orm-macrosCiphertext: Generated by sea-orm-macrosKdfAlgorithm: Generated by sea-orm-macrosKdfSalt: Generated by sea-orm-macrosKdfMCost: Generated by sea-orm-macrosKdfTCost: Generated by sea-orm-macrosKdfPCost: Generated by sea-orm-macrosCipherAlgorithm: Generated by sea-orm-macrosCipherNonce: Generated by sea-orm-macrosCreatedAt: Generated by sea-orm-macrosUpdatedAt: 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 (none unless FK edges are modeled).
Implements: Clone, Copy, Debug, IntoEnumIterator, RelationTrait
Generated from crates/bookclerk-library at main · View as Markdown