bookclerk_library::entities::plugin_artifacts
SeaORM entity for plugin_artifacts: the header of a version archive
stored in the library when no shared artifact location exists.
The bytes live in plugin_artifact_chunks, written before this row, so
a header means every chunk is stored.
| 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). |
pub struct Model {
pub sha256: String,
pub size: i64,
pub chunk_bytes: i64,
pub created_at: String,
}
Row shape for this table (DeriveEntityModel).
Fields
sha256: Lowercase hex SHA-256 of the archive bytes.size: Archive size in bytes.chunk_bytes: Bytes per chunk inplugin_artifact_chunks(the last may be shorter); picks which chunk set belongs to this archive.created_at: RFC 3339 insert time.
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 sha256: ActiveValue<String>,
pub size: ActiveValue<i64>,
pub chunk_bytes: ActiveValue<i64>,
pub created_at: ActiveValue<String>,
}
Generated by sea-orm-macros
Fields
sha256: Generated by sea-orm-macrossize: Generated by sea-orm-macroschunk_bytes: Generated by sea-orm-macroscreated_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 {
Sha256,
Size,
ChunkBytes,
CreatedAt,
}
Generated by sea-orm-macros
Variants
Sha256: Generated by sea-orm-macrosSize: Generated by sea-orm-macrosChunkBytes: Generated by sea-orm-macrosCreatedAt: Generated by sea-orm-macros
Implements: Clone, ColumnTrait, Copy, Debug, FromStr, Iden, IdenStatic, IntoEnumIterator
pub enum PrimaryKey {
Sha256,
}
Generated by sea-orm-macros
Variants
Sha256: Generated by sea-orm-macros
Implements: Clone, Copy, Debug, Iden, IdenStatic, IntoEnumIterator, PrimaryKeyToColumn, PrimaryKeyTrait
pub enum Relation {}
Declared SeaORM relations (none).
Implements: Clone, Copy, Debug, IntoEnumIterator, RelationTrait
Generated from crates/bookclerk-library at main · View as Markdown