pub enum PartitionRejection {
Constraint {
relation: String,
},
NoPartition {
relation: String,
keys: Vec<Value>,
},
}Expand description
Why partition routing rejects a row. The executor reports each with a description of the row, which depends on the statement and the role that writes it.
Variants§
Constraint
The row does not satisfy the partition constraint of relation, which a statement names and routes from: new row for relation "x" violates partition constraint.
NoPartition
No partition of relation accepts the row, whose partition key has the values keys: no partition of relation "x" found for row.
Trait Implementations§
Source§impl Clone for PartitionRejection
impl Clone for PartitionRejection
Source§impl Debug for PartitionRejection
impl Debug for PartitionRejection
Source§impl PartialEq for PartitionRejection
impl PartialEq for PartitionRejection
impl StructuralPartialEq for PartitionRejection
Auto Trait Implementations§
impl Freeze for PartitionRejection
impl RefUnwindSafe for PartitionRejection
impl Send for PartitionRejection
impl Sync for PartitionRejection
impl Unpin for PartitionRejection
impl UnsafeUnpin for PartitionRejection
impl UnwindSafe for PartitionRejection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more