pub trait Table: Sized {
type Row: Read + Write + NumBytes;
const NAME: TableName;
// Required method
fn primary_key(row: &Self::Row) -> u64;
// Provided methods
fn secondary_keys(_row: &Self::Row) -> SecondaryKeys { ... }
fn table<C, S>(code: C, scope: S) -> PrimaryTableIndex<Self>
where C: Into<AccountName>,
S: Into<ScopeName> { ... }
}
Expand description
TODO docs
Required Associated Constants§
Required Associated Types§
Required Methods§
Sourcefn primary_key(row: &Self::Row) -> u64
fn primary_key(row: &Self::Row) -> u64
TODO docs
Provided Methods§
Sourcefn secondary_keys(_row: &Self::Row) -> SecondaryKeys
fn secondary_keys(_row: &Self::Row) -> SecondaryKeys
TODO docs
Sourcefn table<C, S>(code: C, scope: S) -> PrimaryTableIndex<Self>
fn table<C, S>(code: C, scope: S) -> PrimaryTableIndex<Self>
TODO docs
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.