pub struct Version<T: Materialization> {
pub version_id: i64,
pub schema_id: i32,
pub timestamp_ms: i64,
pub summary: Summary,
pub representations: Vec<ViewRepresentation>,
pub default_catalog: Option<String>,
pub default_namespace: Vec<String>,
pub storage_table: T,
}
Expand description
Fields for the version 2 of the view metadata.
Fields§
§version_id: i64
Monotonically increasing id indicating the version of the view. Starts with 1.
schema_id: i32
ID of the schema for the view version
timestamp_ms: i64
Timestamp expressed in ms since epoch at which the version of the view was created.
summary: Summary
A string map summarizes the version changes, including operation, described in Summary.
representations: Vec<ViewRepresentation>
A list of “representations” as described in Representations.
default_catalog: Option<String>
A string specifying the catalog to use when the table or view references in the view definition do not contain an explicit catalog.
default_namespace: Vec<String>
The namespace to use when the table or view references in the view definition do not contain an explicit namespace. Since the namespace may contain multiple parts, it is serialized as a list of strings.
storage_table: T
Full identifier record of the storage table
Implementations§
Source§impl<T: Materialization> Version<T>
Auto-generated by derive_getters::Getters
.
impl<T: Materialization> Version<T>
Auto-generated by derive_getters::Getters
.
Sourcepub fn version_id(&self) -> &i64
pub fn version_id(&self) -> &i64
Monotonically increasing id indicating the version of the view. Starts with 1.
Sourcepub fn timestamp_ms(&self) -> &i64
pub fn timestamp_ms(&self) -> &i64
Timestamp expressed in ms since epoch at which the version of the view was created.
Sourcepub fn summary(&self) -> &Summary
pub fn summary(&self) -> &Summary
A string map summarizes the version changes, including operation, described in Summary.
Sourcepub fn representations(&self) -> &Vec<ViewRepresentation>
pub fn representations(&self) -> &Vec<ViewRepresentation>
A list of “representations” as described in Representations.
Sourcepub fn default_catalog(&self) -> &Option<String>
pub fn default_catalog(&self) -> &Option<String>
A string specifying the catalog to use when the table or view references in the view definition do not contain an explicit catalog.
Sourcepub fn default_namespace(&self) -> &Vec<String>
pub fn default_namespace(&self) -> &Vec<String>
The namespace to use when the table or view references in the view definition do not contain an explicit namespace. Since the namespace may contain multiple parts, it is serialized as a list of strings.
Sourcepub fn storage_table(&self) -> &T
pub fn storage_table(&self) -> &T
Full identifier record of the storage table
Source§impl<T: Materialization> Version<T>
impl<T: Materialization> Version<T>
pub fn builder() -> VersionBuilder<T>
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Version<T>where
T: Deserialize<'de> + Materialization,
impl<'de, T> Deserialize<'de> for Version<T>where
T: Deserialize<'de> + Materialization,
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>,
Source§impl<T: Materialization + for<'de> Deserialize<'de>> FromStr for Version<T>
impl<T: Materialization + for<'de> Deserialize<'de>> FromStr for Version<T>
impl<T: Eq + Materialization> Eq for Version<T>
impl<T: Materialization> StructuralPartialEq for Version<T>
Auto Trait Implementations§
impl<T> Freeze for Version<T>where
T: Freeze,
impl<T> RefUnwindSafe for Version<T>where
T: RefUnwindSafe,
impl<T> Send for Version<T>where
T: Send,
impl<T> Sync for Version<T>where
T: Sync,
impl<T> Unpin for Version<T>where
T: Unpin,
impl<T> UnwindSafe for Version<T>where
T: UnwindSafe,
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
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>
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>
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