pub enum PostgresSchemaType {
Table(&'static TableRef),
View(&'static dyn SQLViewInfo),
Index(&'static dyn SQLIndexInfo),
Policy(&'static dyn SQLPolicyInfo),
Trigger,
Enum(&'static dyn SQLEnumInfo),
}Expand description
A schema object that a PostgreSQL schema can contain.
Each table, view, index, policy and enum that the PostgreSQL macros
generate reports its kind as one of these (its SQLSchema::TYPE). The
type also serves as the dialect marker that keeps tables of other
dialects out of a PostgreSQL schema.
Variants§
Table(&'static TableRef)
A regular table
View(&'static dyn SQLViewInfo)
A view
Index(&'static dyn SQLIndexInfo)
An index
Policy(&'static dyn SQLPolicyInfo)
A row-level security policy
Trigger
A trigger (reserved; not generated yet)
Enum(&'static dyn SQLEnumInfo)
A database enum type (PostgreSQL)
Trait Implementations§
Source§impl Clone for PostgresSchemaType
impl Clone for PostgresSchemaType
Source§impl Debug for PostgresSchemaType
impl Debug for PostgresSchemaType
impl SQLSchemaType for PostgresSchemaType
Auto Trait Implementations§
impl !RefUnwindSafe for PostgresSchemaType
impl !UnwindSafe for PostgresSchemaType
impl Freeze for PostgresSchemaType
impl Send for PostgresSchemaType
impl Sync for PostgresSchemaType
impl Unpin for PostgresSchemaType
impl UnsafeUnpin for PostgresSchemaType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more