pub struct Metadata<'s, const C: usize> {
    pub table_name: &'s str,
    pub id_column: &'s str,
    pub columns: [&'s str; C],
    pub select_sql: &'s str,
    pub select_by_id_sql: &'s str,
    pub insert_sql: &'s str,
    pub update_by_id_sql: &'s str,
    pub delete_by_id_sql: &'s str,
}

Fields

table_name: &'s strid_column: &'s strcolumns: [&'s str; C]select_sql: &'s strselect_by_id_sql: &'s strinsert_sql: &'s strupdate_by_id_sql: &'s strdelete_by_id_sql: &'s str

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.