#[non_exhaustive]pub struct SplitPoints {
pub table: String,
pub index: String,
pub keys: Vec<Key>,
pub expire_time: Option<Timestamp>,
}
Expand description
The split points of a table/index.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.table: String
The table to split.
index: String
The index to split.
If specified, the table
field must refer to the index’s base table.
keys: Vec<Key>
Required. The list of split keys, i.e., the split boundaries.
expire_time: Option<Timestamp>
Optional. The expiration timestamp of the split points. A timestamp in the past means immediate expiration. The maximum value can be 30 days in the future. Defaults to 10 days in the future if not specified.
Implementations§
Source§impl SplitPoints
impl SplitPoints
pub fn new() -> Self
Sourcepub fn set_expire_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_expire_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of expire_time.
Trait Implementations§
Source§impl Clone for SplitPoints
impl Clone for SplitPoints
Source§fn clone(&self) -> SplitPoints
fn clone(&self) -> SplitPoints
Returns a copy of the value. Read more
1.0.0 · 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 SplitPoints
impl Debug for SplitPoints
Source§impl Default for SplitPoints
impl Default for SplitPoints
Source§fn default() -> SplitPoints
fn default() -> SplitPoints
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SplitPointswhere
SplitPoints: Default,
impl<'de> Deserialize<'de> for SplitPointswhere
SplitPoints: Default,
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 Message for SplitPoints
impl Message for SplitPoints
Source§impl PartialEq for SplitPoints
impl PartialEq for SplitPoints
Source§impl Serialize for SplitPoints
impl Serialize for SplitPoints
impl StructuralPartialEq for SplitPoints
Auto Trait Implementations§
impl Freeze for SplitPoints
impl RefUnwindSafe for SplitPoints
impl Send for SplitPoints
impl Sync for SplitPoints
impl Unpin for SplitPoints
impl UnwindSafe for SplitPoints
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