pub trait SQLTable<'a, Type: SQLSchemaType, Value: SQLParam + 'a>:
SQLSchema<'a, Type, Value>
+ SQLTableInfo
+ Default
+ Clone
+ Copy {
type Select: SQLModel<'a, Value> + SQLPartial<'a, Value> + 'a;
type ForeignKeys;
type PrimaryKey;
type Constraints;
type Insert<T>: SQLModel<'a, Value> + Default;
type Update: SQLModel<'a, Value> + 'a;
type Aliased<Name: Tag + 'static>: SQLTable<'a, Type, Value>;
// Required method
fn alias<Name: Tag + 'static>() -> Self::Aliased<Name>;
}Required Associated Types§
type Select: SQLModel<'a, Value> + SQLPartial<'a, Value> + 'a
type ForeignKeys
type PrimaryKey
type Constraints
Sourcetype Insert<T>: SQLModel<'a, Value> + Default
type Insert<T>: SQLModel<'a, Value> + Default
The type representing a model for INSERT operations on this table.
Uses PhantomData with tuple markers to track which fields are set
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".