#[non_exhaustive]pub enum PartitionKeySpecKind {
BodyField,
Header,
PrincipalAttr,
}Expand description
The kind tag of a PartitionKeySpec, without its payload.
Returned in crate::SpiError::PartitionUnresolved to report which
sources were tried, as shape-only telemetry (never the values looked for).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BodyField
Corresponds to PartitionKeySpec::BodyField.
Header
Corresponds to PartitionKeySpec::Header.
PrincipalAttr
Corresponds to PartitionKeySpec::PrincipalAttr.
Trait Implementations§
Source§impl Clone for PartitionKeySpecKind
impl Clone for PartitionKeySpecKind
Source§fn clone(&self) -> PartitionKeySpecKind
fn clone(&self) -> PartitionKeySpecKind
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 moreimpl Copy for PartitionKeySpecKind
Source§impl Debug for PartitionKeySpecKind
impl Debug for PartitionKeySpecKind
impl Eq for PartitionKeySpecKind
Source§impl PartialEq for PartitionKeySpecKind
impl PartialEq for PartitionKeySpecKind
Source§fn eq(&self, other: &PartitionKeySpecKind) -> bool
fn eq(&self, other: &PartitionKeySpecKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PartitionKeySpecKind
Auto Trait Implementations§
impl Freeze for PartitionKeySpecKind
impl RefUnwindSafe for PartitionKeySpecKind
impl Send for PartitionKeySpecKind
impl Sync for PartitionKeySpecKind
impl Unpin for PartitionKeySpecKind
impl UnsafeUnpin for PartitionKeySpecKind
impl UnwindSafe for PartitionKeySpecKind
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