pub struct RangePartitionDef {
pub name: String,
pub from: RangeBound,
pub to: RangeBound,
pub tablespace: Option<String>,
}Expand description
A range partition definition.
Fields§
§name: StringPartition name.
from: RangeBoundLower bound (inclusive).
to: RangeBoundUpper bound (exclusive).
tablespace: Option<String>Tablespace (optional).
Implementations§
Source§impl RangePartitionDef
impl RangePartitionDef
Sourcepub fn new(name: impl Into<String>, from: RangeBound, to: RangeBound) -> Self
pub fn new(name: impl Into<String>, from: RangeBound, to: RangeBound) -> Self
Create a new range partition definition.
Sourcepub fn tablespace(self, tablespace: impl Into<String>) -> Self
pub fn tablespace(self, tablespace: impl Into<String>) -> Self
Set the tablespace.
Trait Implementations§
Source§impl Clone for RangePartitionDef
impl Clone for RangePartitionDef
Source§fn clone(&self) -> RangePartitionDef
fn clone(&self) -> RangePartitionDef
Returns a duplicate 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 RangePartitionDef
impl Debug for RangePartitionDef
Source§impl<'de> Deserialize<'de> for RangePartitionDef
impl<'de> Deserialize<'de> for RangePartitionDef
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 RangePartitionDef
impl PartialEq for RangePartitionDef
Source§impl Serialize for RangePartitionDef
impl Serialize for RangePartitionDef
impl Eq for RangePartitionDef
impl StructuralPartialEq for RangePartitionDef
Auto Trait Implementations§
impl Freeze for RangePartitionDef
impl RefUnwindSafe for RangePartitionDef
impl Send for RangePartitionDef
impl Sync for RangePartitionDef
impl Unpin for RangePartitionDef
impl UnwindSafe for RangePartitionDef
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