bookclerk_library::entities::user_title_state
SeaORM entity for the user_title_state table.
| Item | Kind | Summary |
|---|---|---|
Model |
struct | One user's own state for one work: finished flag, ratings and tags. |
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 user_id: i64,
pub work_id: String,
pub is_finished: i64,
pub rating_overall: Option<f64>,
pub rating_performance: Option<f64>,
pub rating_story: Option<f64>,
pub tags: Option<String>,
pub updated_at: String,
}
One user's own state for one work: finished flag, ratings and tags.
Fields
user_id: The user (users.id) the state belongs to.work_id: The work (works.id) the state is about.is_finished:1once the user finished the work, else0.rating_overall: The user's overall rating (storefront scale, 0 to 5), when given.rating_performance: The user's narration rating (0 to 5), when given.rating_story: The user's story rating (0 to 5), when given.tags: The user's tags, as one serialized string, when any.updated_at: RFC 3339 time of the last write.
pub fn into_ex(self) -> Self
Generated by sea-orm-macros
Implements: Clone, Debug, 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 user_id: ActiveValue<i64>,
pub work_id: ActiveValue<String>,
pub is_finished: ActiveValue<i64>,
pub rating_overall: ActiveValue<Option<f64>>,
pub rating_performance: ActiveValue<Option<f64>>,
pub rating_story: ActiveValue<Option<f64>>,
pub tags: ActiveValue<Option<String>>,
pub updated_at: ActiveValue<String>,
}
Generated by sea-orm-macros
Fields
user_id: Generated by sea-orm-macroswork_id: Generated by sea-orm-macrosis_finished: Generated by sea-orm-macrosrating_overall: Generated by sea-orm-macrosrating_performance: Generated by sea-orm-macrosrating_story: Generated by sea-orm-macrostags: 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 {
UserId,
WorkId,
IsFinished,
RatingOverall,
RatingPerformance,
RatingStory,
Tags,
UpdatedAt,
}
Generated by sea-orm-macros
Variants
UserId: Generated by sea-orm-macrosWorkId: Generated by sea-orm-macrosIsFinished: Generated by sea-orm-macrosRatingOverall: Generated by sea-orm-macrosRatingPerformance: Generated by sea-orm-macrosRatingStory: Generated by sea-orm-macrosTags: Generated by sea-orm-macrosUpdatedAt: Generated by sea-orm-macros
Implements: Clone, ColumnTrait, Copy, Debug, FromStr, Iden, IdenStatic, IntoEnumIterator
pub enum PrimaryKey {
UserId,
WorkId,
}
Generated by sea-orm-macros
Variants
UserId: Generated by sea-orm-macrosWorkId: 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