pub struct TiDBAutoRandom {
pub shard_bits: Option<u64>,
pub range_bits: Option<u64>,
pub executable_comment: bool,
}Expand description
TiDB AUTO_RANDOM[(shard_bits[, range_bits])] column attribute.
Fields§
§shard_bits: Option<u64>§range_bits: Option<u64>§executable_comment: boolWhether the attribute was wrapped in a TiDB executable comment.
Trait Implementations§
Source§impl Clone for TiDBAutoRandom
impl Clone for TiDBAutoRandom
Source§fn clone(&self) -> TiDBAutoRandom
fn clone(&self) -> TiDBAutoRandom
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 TiDBAutoRandom
impl Debug for TiDBAutoRandom
Source§impl<'de> Deserialize<'de> for TiDBAutoRandom
impl<'de> Deserialize<'de> for TiDBAutoRandom
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 TiDBAutoRandom
impl PartialEq for TiDBAutoRandom
Source§impl Serialize for TiDBAutoRandom
impl Serialize for TiDBAutoRandom
impl StructuralPartialEq for TiDBAutoRandom
Auto Trait Implementations§
impl Freeze for TiDBAutoRandom
impl RefUnwindSafe for TiDBAutoRandom
impl Send for TiDBAutoRandom
impl Sync for TiDBAutoRandom
impl Unpin for TiDBAutoRandom
impl UnsafeUnpin for TiDBAutoRandom
impl UnwindSafe for TiDBAutoRandom
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