pub struct ViewVersion { /* private fields */ }
Expand description
A view versions represents the definition of a view at a specific point in time.
Implementations§
Source§impl ViewVersion
impl ViewVersion
Sourcepub fn builder() -> ViewVersionBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> ViewVersionBuilder<((), (), (), (), (), (), ())>
Create a builder for building ViewVersion
.
On the builder, call .version_id(...)
(optional), .schema_id(...)
, .timestamp_ms(...)
, .summary(...)
(optional), .representations(...)
, .default_catalog(...)
(optional), .default_namespace(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ViewVersion
.
Source§impl ViewVersion
impl ViewVersion
Sourcepub fn version_id(&self) -> ViewVersionId
pub fn version_id(&self) -> ViewVersionId
Get the version id of this view version.
Sourcepub fn timestamp(&self) -> Result<DateTime<Utc>>
pub fn timestamp(&self) -> Result<DateTime<Utc>>
Get the timestamp of when the view version was created
Sourcepub fn timestamp_ms(&self) -> i64
pub fn timestamp_ms(&self) -> i64
Get the timestamp of when the view version was created in milliseconds since epoch
Sourcepub fn representations(&self) -> &ViewRepresentations
pub fn representations(&self) -> &ViewRepresentations
Get this views representations
Sourcepub fn default_catalog(&self) -> Option<&String>
pub fn default_catalog(&self) -> Option<&String>
Get the default catalog for this view version
Sourcepub fn default_namespace(&self) -> &NamespaceIdent
pub fn default_namespace(&self) -> &NamespaceIdent
Get the default namespace to use when a reference in the SELECT is a single identifier
Sourcepub fn schema(&self, view_metadata: &ViewMetadata) -> Result<SchemaRef>
pub fn schema(&self, view_metadata: &ViewMetadata) -> Result<SchemaRef>
Get the schema of this snapshot.
Sourcepub fn with_version_id(self, version_id: i32) -> Self
pub fn with_version_id(self, version_id: i32) -> Self
Change the version id of this view version.
Sourcepub fn with_schema_id(self, schema_id: SchemaId) -> Self
pub fn with_schema_id(self, schema_id: SchemaId) -> Self
Change the schema id of this view version.
Trait Implementations§
Source§impl Clone for ViewVersion
impl Clone for ViewVersion
Source§fn clone(&self) -> ViewVersion
fn clone(&self) -> ViewVersion
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ViewVersion
impl Debug for ViewVersion
Source§impl<'de> Deserialize<'de> for ViewVersion
impl<'de> Deserialize<'de> for ViewVersion
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 PartialEq for ViewVersion
impl PartialEq for ViewVersion
Source§impl Serialize for ViewVersion
impl Serialize for ViewVersion
impl Eq for ViewVersion
impl StructuralPartialEq for ViewVersion
Auto Trait Implementations§
impl Freeze for ViewVersion
impl RefUnwindSafe for ViewVersion
impl Send for ViewVersion
impl Sync for ViewVersion
impl Unpin for ViewVersion
impl UnwindSafe for ViewVersion
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§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> ⓘ
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