pub enum TabularMetadata {
Table(TableMetadata),
View(ViewMetadata),
MaterializedView(MaterializedViewMetadata),
}
Expand description
Represents metadata for different types of tabular data structures in Iceberg
This enum provides a unified way to handle metadata for tables, views, and materialized views. It allows working with different tabular types through a common interface while preserving their specific metadata structures.
Variants§
Table(TableMetadata)
Table metadata
View(ViewMetadata)
View metadata
MaterializedView(MaterializedViewMetadata)
Materialized view metadata
Implementations§
Source§impl TabularMetadata
impl TabularMetadata
pub fn as_ref(&self) -> TabularMetadataRef<'_>
Trait Implementations§
Source§impl Clone for TabularMetadata
impl Clone for TabularMetadata
Source§fn clone(&self) -> TabularMetadata
fn clone(&self) -> TabularMetadata
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 TabularMetadata
impl Debug for TabularMetadata
Source§impl<'de> Deserialize<'de> for TabularMetadata
impl<'de> Deserialize<'de> for TabularMetadata
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 Display for TabularMetadata
impl Display for TabularMetadata
Source§impl<'a> From<&'a TabularMetadata> for TabularMetadataRef<'a>
impl<'a> From<&'a TabularMetadata> for TabularMetadataRef<'a>
Source§fn from(value: &'a TabularMetadata) -> Self
fn from(value: &'a TabularMetadata) -> Self
Converts to this type from the input type.
Source§impl From<GeneralViewMetadata<FullIdentifier>> for TabularMetadata
impl From<GeneralViewMetadata<FullIdentifier>> for TabularMetadata
Source§fn from(value: MaterializedViewMetadata) -> Self
fn from(value: MaterializedViewMetadata) -> Self
Converts to this type from the input type.
Source§impl From<GeneralViewMetadata<Option<()>>> for TabularMetadata
impl From<GeneralViewMetadata<Option<()>>> for TabularMetadata
Source§fn from(value: ViewMetadata) -> Self
fn from(value: ViewMetadata) -> Self
Converts to this type from the input type.
Source§impl From<TableMetadata> for TabularMetadata
impl From<TableMetadata> for TabularMetadata
Source§fn from(value: TableMetadata) -> Self
fn from(value: TableMetadata) -> Self
Converts to this type from the input type.
Source§impl FromStr for TabularMetadata
impl FromStr for TabularMetadata
Source§impl PartialEq for TabularMetadata
impl PartialEq for TabularMetadata
Source§impl Serialize for TabularMetadata
impl Serialize for TabularMetadata
impl Eq for TabularMetadata
impl StructuralPartialEq for TabularMetadata
Auto Trait Implementations§
impl Freeze for TabularMetadata
impl RefUnwindSafe for TabularMetadata
impl Send for TabularMetadata
impl Sync for TabularMetadata
impl Unpin for TabularMetadata
impl UnwindSafe for TabularMetadata
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,
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