Trait paradox_typed_db::TypedTable
source · pub trait TypedTable<'de>: Sized {
type Column: TypedColumn;
const NAME: &'static str;
// Required methods
fn as_raw(&self) -> Table<'de>;
fn new(inner: Table<'de>) -> Self;
// Provided method
fn of(tables: Tables<'de>) -> Option<Result<Self, CastError>> { ... }
}
Expand description
A “typed” database row
A typed table is the combination of a “raw” table from the assembly_fdb
crate with
some metadata. Examples for this metadata are:
- Mapping from a well-known column name (e.g.
MissionID
) to the “real” column index within the FDB
Required Associated Types§
sourcetype Column: TypedColumn
type Column: TypedColumn
The type representing one well-known column