pub trait SQLTable<'a, Type, Value>:
SQLSchema<'a, Type, Value>
+ SQLTableInfo
+ Default
+ Clonewhere
Type: SQLSchemaType,
Value: SQLParam + 'a,{
type Select: SQLModel<'a, Value> + SQLPartial<'a, Value> + Default + 'a;
type Insert<T>: SQLModel<'a, Value> + Default;
type Update: SQLModel<'a, Value> + Default + 'a;
type Aliased: SQLTable<'a, Type, Value>;
// Required method
fn alias(name: &'static str) -> Self::Aliased;
}Required Associated Types§
type Select: SQLModel<'a, Value> + SQLPartial<'a, Value> + Default + 'a
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", so this trait is not object safe.