bookclerk_library::entities::plugin_placements

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

Last updated View as Markdown

SeaORM entity for plugin_placements: the scheduler's input per instance.

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).

Structs

Model

pub struct Model {
    pub plugin_instance_id: String,
    pub replicas: Option<i64>,
    pub constraints_json: String,
    pub revision: i64,
    pub updated_at: String,
    pub updated_by: String,
    pub placed: i64,
    pub detail: String,
    pub scheduled_at: String,
}

Row shape for this table (DeriveEntityModel).

Fields

  • plugin_instance_id: Placed instance.
  • replicas: Hosts that should run the instance; empty means every host that qualifies and has room.
  • constraints_json: JSON array of label constraints every chosen host must satisfy.
  • revision: Compare-and-swap revision of the operator's intent.
  • updated_at: RFC 3339 time of the last intent write.
  • updated_by: Audit identity of the last intent writer.
  • placed: Replicas the last scheduler pass placed.
  • detail: Why the last pass placed fewer than replicas; empty when satisfied.
  • scheduled_at: RFC 3339 time of the last scheduler pass that changed the status.

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 plugin_instance_id: ActiveValue<String>,
    pub replicas: ActiveValue<Option<i64>>,
    pub constraints_json: ActiveValue<String>,
    pub revision: ActiveValue<i64>,
    pub updated_at: ActiveValue<String>,
    pub updated_by: ActiveValue<String>,
    pub placed: ActiveValue<i64>,
    pub detail: ActiveValue<String>,
    pub scheduled_at: ActiveValue<String>,
}

Generated by sea-orm-macros

Fields

  • plugin_instance_id: Generated by sea-orm-macros
  • replicas: Generated by sea-orm-macros
  • constraints_json: Generated by sea-orm-macros
  • revision: Generated by sea-orm-macros
  • updated_at: Generated by sea-orm-macros
  • updated_by: Generated by sea-orm-macros
  • placed: Generated by sea-orm-macros
  • detail: Generated by sea-orm-macros
  • scheduled_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 {
    PluginInstanceId,
    Replicas,
    ConstraintsJson,
    Revision,
    UpdatedAt,
    UpdatedBy,
    Placed,
    Detail,
    ScheduledAt,
}

Generated by sea-orm-macros

Variants

  • PluginInstanceId: Generated by sea-orm-macros
  • Replicas: Generated by sea-orm-macros
  • ConstraintsJson: Generated by sea-orm-macros
  • Revision: Generated by sea-orm-macros
  • UpdatedAt: Generated by sea-orm-macros
  • UpdatedBy: Generated by sea-orm-macros
  • Placed: Generated by sea-orm-macros
  • Detail: Generated by sea-orm-macros
  • ScheduledAt: Generated by sea-orm-macros

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

PrimaryKey

pub enum PrimaryKey {
    PluginInstanceId,
}

Generated by sea-orm-macros

Variants

  • PluginInstanceId: Generated by sea-orm-macros

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

Relation

pub enum Relation {}

Declared SeaORM relations (none).

Implements: Clone, Copy, Debug, IntoEnumIterator, RelationTrait

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