bookclerk_library::entities::listing_offers
SeaORM entity for the listing_offers table (composite primary key).
| Item | Kind | Summary |
|---|---|---|
Model |
struct | One price a store asks for one listing, for one audience (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 unless FK edges are modeled). |
pub struct Model {
pub listing_id: String,
pub audience: String,
pub price_cents: Option<i64>,
pub price_label: Option<String>,
pub currency: Option<String>,
pub observed_at: String,
}
One price a store asks for one listing, for one audience (DeriveEntityModel).
Fields
listing_id: Thestore_listingsrow priced.audience:non_member(no account at the store) ormember.price_cents: Price in minor units ofSelf::currency, when the store gave one.price_label: The store's formatted price ($14.95), when it gave one.currency: ISO 4217 currency code.observed_at: RFC 3339 time the store quoted it.
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 listing_id: ActiveValue<String>,
pub audience: ActiveValue<String>,
pub price_cents: ActiveValue<Option<i64>>,
pub price_label: ActiveValue<Option<String>>,
pub currency: ActiveValue<Option<String>>,
pub observed_at: ActiveValue<String>,
}
Generated by sea-orm-macros
Fields
listing_id: Generated by sea-orm-macrosaudience: Generated by sea-orm-macrosprice_cents: Generated by sea-orm-macrosprice_label: Generated by sea-orm-macroscurrency: Generated by sea-orm-macrosobserved_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 {
ListingId,
Audience,
PriceCents,
PriceLabel,
Currency,
ObservedAt,
}
Generated by sea-orm-macros
Variants
ListingId: Generated by sea-orm-macrosAudience: Generated by sea-orm-macrosPriceCents: Generated by sea-orm-macrosPriceLabel: Generated by sea-orm-macrosCurrency: Generated by sea-orm-macrosObservedAt: Generated by sea-orm-macros
Implements: Clone, ColumnTrait, Copy, Debug, FromStr, Iden, IdenStatic, IntoEnumIterator
pub enum PrimaryKey {
ListingId,
Audience,
}
Generated by sea-orm-macros
Variants
ListingId: Generated by sea-orm-macrosAudience: 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