bookclerk_library::entities::library_leases
SeaORM entity for library_leases: singleton maintenance leases.
| 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 name: String,
pub holder: String,
pub token: i64,
pub expires_at_ms: i64,
pub renewed_at: String,
}
Row shape for this table (DeriveEntityModel).
Fields
name: Lease name (scheduler, …).holder: Current holder (a host id).token: Fencing token; bumps whenever the holder changes.expires_at_ms: Expiry in Unix milliseconds.renewed_at: RFC 3339 time of the last acquire or renew.
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 name: ActiveValue<String>,
pub holder: ActiveValue<String>,
pub token: ActiveValue<i64>,
pub expires_at_ms: ActiveValue<i64>,
pub renewed_at: ActiveValue<String>,
}
Generated by sea-orm-macros
Fields
name: Generated by sea-orm-macrosholder: Generated by sea-orm-macrostoken: Generated by sea-orm-macrosexpires_at_ms: Generated by sea-orm-macrosrenewed_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 {
Name,
Holder,
Token,
ExpiresAtMs,
RenewedAt,
}
Generated by sea-orm-macros
Variants
Name: Generated by sea-orm-macrosHolder: Generated by sea-orm-macrosToken: Generated by sea-orm-macrosExpiresAtMs: Generated by sea-orm-macrosRenewedAt: Generated by sea-orm-macros
Implements: Clone, ColumnTrait, Copy, Debug, FromStr, Iden, IdenStatic, IntoEnumIterator
pub enum PrimaryKey {
Name,
}
Generated by sea-orm-macros
Variants
Name: 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