pub enum TableLikeFeature {
Comments,
Compression,
Constraints,
Defaults,
Generated,
Identity,
Indexes,
Statistics,
Storage,
All,
}Expand description
The feature a TableLikeOption copies (or omits) from the source table (PostgreSQL’s
TableLikeOption set). A Copy leaf enum whose span rides the owning TableLikeOption.
Variants§
Comments
COMMENTS — column and constraint comments.
Compression
COMPRESSION — per-column compression methods.
Constraints
CONSTRAINTS — CHECK constraints.
Defaults
DEFAULTS — column default expressions.
Generated
GENERATED — generated-column expressions.
Identity
IDENTITY — identity/serial column specifications.
Indexes
INDEXES — indexes plus primary-key and unique constraints.
Statistics
STATISTICS — extended planner statistics.
Storage
STORAGE — per-column storage settings.
All
ALL — every feature (PostgreSQL’s CREATE_TABLE_LIKE_ALL).
Trait Implementations§
Source§impl Clone for TableLikeFeature
impl Clone for TableLikeFeature
Source§fn clone(&self) -> TableLikeFeature
fn clone(&self) -> TableLikeFeature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TableLikeFeature
Source§impl Debug for TableLikeFeature
impl Debug for TableLikeFeature
Source§impl<'de> Deserialize<'de> for TableLikeFeature
impl<'de> Deserialize<'de> for TableLikeFeature
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TableLikeFeature
Source§impl Hash for TableLikeFeature
impl Hash for TableLikeFeature
Source§impl PartialEq for TableLikeFeature
impl PartialEq for TableLikeFeature
Source§impl Render for TableLikeFeature
impl Render for TableLikeFeature
Source§fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
Return the render for this value.
Source§fn operand_binding_power(&self) -> Option<BindingPower>
fn operand_binding_power(&self) -> Option<BindingPower>
The binding power this node contributes when it appears as an operand, or
None (the default) for a self-delimiting node — an atom, call, or
constructor — that never needs parentheses. Read moreSource§impl Serialize for TableLikeFeature
impl Serialize for TableLikeFeature
impl StructuralPartialEq for TableLikeFeature
Auto Trait Implementations§
impl Freeze for TableLikeFeature
impl RefUnwindSafe for TableLikeFeature
impl Send for TableLikeFeature
impl Sync for TableLikeFeature
impl Unpin for TableLikeFeature
impl UnsafeUnpin for TableLikeFeature
impl UnwindSafe for TableLikeFeature
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