Trait leetcode_tui_rs::migrations::sea_orm::ColIdx
source · pub trait ColIdx: Debug + Copy {
type SqlxSqliteIndex: ColumnIndex<SqliteRow>;
// Required methods
fn as_sqlx_sqlite_index(&self) -> Self::SqlxSqliteIndex;
fn as_str(&self) -> Option<&str>;
fn as_usize(&self) -> Option<&usize>;
}
Expand description
Column Index, used by TryGetable
. Implemented for &str
and usize
Required Associated Types§
sourcetype SqlxSqliteIndex: ColumnIndex<SqliteRow>
type SqlxSqliteIndex: ColumnIndex<SqliteRow>
Type surrogate
Required Methods§
sourcefn as_sqlx_sqlite_index(&self) -> Self::SqlxSqliteIndex
fn as_sqlx_sqlite_index(&self) -> Self::SqlxSqliteIndex
Basically a no-op; only to satisfy trait bounds