pub trait Column:
'static
+ Send
+ Sync
+ Debug {
type Database: Database<Column = Self>;
// Required methods
fn ordinal(&self) -> usize;
fn name(&self) -> &str;
fn type_info(&self) -> &<Self::Database as Database>::TypeInfo;
}
Required Associated Types§
Required Methods§
sourcefn ordinal(&self) -> usize
fn ordinal(&self) -> usize
Gets the column ordinal.
This can be used to unambiguously refer to this column within a row in case more than one column have the same name