bookclerk_library::entities::notifications
SeaORM entity for notifications: one notification the router
accepted, rendered once for every destination and the inbox.
| 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 id: String,
pub notification_type: String,
pub audience: String,
pub severity: String,
pub title: String,
pub body_text: String,
pub link_path: Option<String>,
pub fields_json: String,
pub group_key: Option<String>,
pub alert_action: String,
pub alert_key: Option<String>,
pub source: String,
pub user_id: Option<i64>,
pub created_at: String,
}
Row shape for this table (DeriveEntityModel).
Fields
id: Random UUID; thenotificationIdevery copy carries.notification_type: Qualified notification type.audience:operational,patronoraccount.severity:info,warningorcritical.title: Short title.body_text: Plain-text body.link_path: Path inside the library the notification links to; the send job prefixes the public origin.fields_json: JSON array of{name, value}fields.group_key: Grouping key, when the raiser gave one.alert_action:none,triggerorresolve.alert_key: Alert key; set exactly whenalert_actionis notnone.source: Empty for a host type, else the raising plugin's id.user_id: Patron a patron-audience notification is for.created_at: RFC 3339 creation 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 id: ActiveValue<String>,
pub notification_type: ActiveValue<String>,
pub audience: ActiveValue<String>,
pub severity: ActiveValue<String>,
pub title: ActiveValue<String>,
pub body_text: ActiveValue<String>,
pub link_path: ActiveValue<Option<String>>,
pub fields_json: ActiveValue<String>,
pub group_key: ActiveValue<Option<String>>,
pub alert_action: ActiveValue<String>,
pub alert_key: ActiveValue<Option<String>>,
pub source: ActiveValue<String>,
pub user_id: ActiveValue<Option<i64>>,
pub created_at: ActiveValue<String>,
}
Generated by sea-orm-macros
Fields
id: Generated by sea-orm-macrosnotification_type: Generated by sea-orm-macrosaudience: Generated by sea-orm-macrosseverity: Generated by sea-orm-macrostitle: Generated by sea-orm-macrosbody_text: Generated by sea-orm-macroslink_path: Generated by sea-orm-macrosfields_json: Generated by sea-orm-macrosgroup_key: Generated by sea-orm-macrosalert_action: Generated by sea-orm-macrosalert_key: Generated by sea-orm-macrossource: Generated by sea-orm-macrosuser_id: 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 {
Id,
NotificationType,
Audience,
Severity,
Title,
BodyText,
LinkPath,
FieldsJson,
GroupKey,
AlertAction,
AlertKey,
Source,
UserId,
CreatedAt,
}
Generated by sea-orm-macros
Variants
Id: Generated by sea-orm-macrosNotificationType: Generated by sea-orm-macrosAudience: Generated by sea-orm-macrosSeverity: Generated by sea-orm-macrosTitle: Generated by sea-orm-macrosBodyText: Generated by sea-orm-macrosLinkPath: Generated by sea-orm-macrosFieldsJson: Generated by sea-orm-macrosGroupKey: Generated by sea-orm-macrosAlertAction: Generated by sea-orm-macrosAlertKey: Generated by sea-orm-macrosSource: Generated by sea-orm-macrosUserId: Generated by sea-orm-macrosCreatedAt: 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).
Implements: Clone, Copy, Debug, IntoEnumIterator, RelationTrait
Generated from crates/bookclerk-library at main · View as Markdown