pub enum TableRequirement {
NotExist,
UuidMatch {
uuid: Uuid,
},
RefSnapshotIdMatch {
ref: String,
snapshot_id: Option<i64>,
},
LastAssignedFieldIdMatch {
last_assigned_field_id: i32,
},
CurrentSchemaIdMatch {
current_schema_id: SchemaId,
},
LastAssignedPartitionIdMatch {
last_assigned_partition_id: i32,
},
DefaultSpecIdMatch {
default_spec_id: i32,
},
DefaultSortOrderIdMatch {
default_sort_order_id: i64,
},
}
Expand description
TableRequirement represents a requirement for a table in the catalog.
Variants§
NotExist
The table must not already exist; used for create transactions
UuidMatch
The table UUID must match the requirement.
RefSnapshotIdMatch
The table branch or tag identified by the requirement’s reference
must
reference the requirement’s snapshot-id
.
Fields
LastAssignedFieldIdMatch
The table’s last assigned column id must match the requirement.
CurrentSchemaIdMatch
The table’s current schema id must match the requirement.
LastAssignedPartitionIdMatch
The table’s last assigned partition id must match the requirement.
DefaultSpecIdMatch
The table’s default spec id must match the requirement.
DefaultSortOrderIdMatch
The table’s default sort order id must match the requirement.
Implementations§
Trait Implementations§
Source§impl Clone for TableRequirement
impl Clone for TableRequirement
Source§fn clone(&self) -> TableRequirement
fn clone(&self) -> TableRequirement
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 TableRequirement
impl Debug for TableRequirement
Source§impl<'de> Deserialize<'de> for TableRequirement
impl<'de> Deserialize<'de> for TableRequirement
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 TableRequirement
impl PartialEq for TableRequirement
Source§impl Serialize for TableRequirement
impl Serialize for TableRequirement
impl StructuralPartialEq for TableRequirement
Auto Trait Implementations§
impl Freeze for TableRequirement
impl RefUnwindSafe for TableRequirement
impl Send for TableRequirement
impl Sync for TableRequirement
impl Unpin for TableRequirement
impl UnwindSafe for TableRequirement
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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