#[non_exhaustive]pub struct MaterializedView {
pub name: String,
pub query: String,
pub etag: String,
pub deletion_protection: bool,
/* private fields */
}Expand description
A materialized view object that can be referenced in SQL queries.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringIdentifier. The unique name of the materialized view.
Format:
projects/{project}/instances/{instance}/materializedViews/{materialized_view}
query: StringRequired. Immutable. The materialized view’s select query.
etag: StringOptional. The etag for this materialized view. This may be sent on update requests to ensure that the client has an up-to-date value before proceeding. The server returns an ABORTED error on a mismatched etag.
deletion_protection: boolSet to true to make the MaterializedView protected against deletion.
Implementations§
Source§impl MaterializedView
impl MaterializedView
pub fn new() -> Self
Sourcepub fn set_deletion_protection<T: Into<bool>>(self, v: T) -> Self
pub fn set_deletion_protection<T: Into<bool>>(self, v: T) -> Self
Sets the value of deletion_protection.
§Example
ⓘ
let x = MaterializedView::new().set_deletion_protection(true);Trait Implementations§
Source§impl Clone for MaterializedView
impl Clone for MaterializedView
Source§fn clone(&self) -> MaterializedView
fn clone(&self) -> MaterializedView
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 MaterializedView
impl Debug for MaterializedView
Source§impl Default for MaterializedView
impl Default for MaterializedView
Source§fn default() -> MaterializedView
fn default() -> MaterializedView
Returns the “default value” for a type. Read more
Source§impl Message for MaterializedView
impl Message for MaterializedView
Source§impl PartialEq for MaterializedView
impl PartialEq for MaterializedView
impl StructuralPartialEq for MaterializedView
Auto Trait Implementations§
impl Freeze for MaterializedView
impl RefUnwindSafe for MaterializedView
impl Send for MaterializedView
impl Sync for MaterializedView
impl Unpin for MaterializedView
impl UnwindSafe for MaterializedView
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