pub enum TiDBTableOptionKind {
ShardRowIdBits {
bits: u64,
},
PreSplitRegions {
regions: u64,
},
AutoRandomBase {
value: u64,
},
PlacementPolicy {
policy: Option<Identifier>,
},
Ttl {
column: Identifier,
interval: Interval,
enabled: Option<bool>,
},
TtlEnable {
enabled: bool,
},
TtlJobInterval {
interval: String,
},
}Expand description
TiDB table options supported by CREATE TABLE and applicable ALTER TABLE forms.
Variants§
ShardRowIdBits
PreSplitRegions
AutoRandomBase
PlacementPolicy
None represents PLACEMENT POLICY = DEFAULT.
Fields
§
policy: Option<Identifier>Ttl
TtlEnable
TtlJobInterval
Trait Implementations§
Source§impl Clone for TiDBTableOptionKind
impl Clone for TiDBTableOptionKind
Source§fn clone(&self) -> TiDBTableOptionKind
fn clone(&self) -> TiDBTableOptionKind
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 moreSource§impl Debug for TiDBTableOptionKind
impl Debug for TiDBTableOptionKind
Source§impl<'de> Deserialize<'de> for TiDBTableOptionKind
impl<'de> Deserialize<'de> for TiDBTableOptionKind
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
Source§impl PartialEq for TiDBTableOptionKind
impl PartialEq for TiDBTableOptionKind
Source§impl Serialize for TiDBTableOptionKind
impl Serialize for TiDBTableOptionKind
impl StructuralPartialEq for TiDBTableOptionKind
Auto Trait Implementations§
impl Freeze for TiDBTableOptionKind
impl RefUnwindSafe for TiDBTableOptionKind
impl Send for TiDBTableOptionKind
impl Sync for TiDBTableOptionKind
impl Unpin for TiDBTableOptionKind
impl UnsafeUnpin for TiDBTableOptionKind
impl UnwindSafe for TiDBTableOptionKind
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