#[non_exhaustive]pub struct MaterializedView {
pub table_reference: Option<TableReference>,
pub chosen: Option<bool>,
pub estimated_bytes_saved: Option<i64>,
pub rejected_reason: Option<RejectedReason>,
/* private fields */
}Expand description
A materialized view considered for a query job.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.table_reference: Option<TableReference>The candidate materialized view.
chosen: Option<bool>Whether the materialized view is chosen for the query.
A materialized view can be chosen to rewrite multiple parts of the same query. If a materialized view is chosen to rewrite any part of the query, then this field is true, even if the materialized view was not chosen to rewrite others parts.
estimated_bytes_saved: Option<i64>If present, specifies a best-effort estimation of the bytes saved by using the materialized view rather than its base tables.
rejected_reason: Option<RejectedReason>If present, specifies the reason why the materialized view was not chosen for the query.
Implementations§
Source§impl MaterializedView
impl MaterializedView
Sourcepub fn set_table_reference<T>(self, v: T) -> Selfwhere
T: Into<TableReference>,
pub fn set_table_reference<T>(self, v: T) -> Selfwhere
T: Into<TableReference>,
Sets the value of table_reference.
§Example
use google_cloud_bigquery_v2::model::TableReference;
let x = MaterializedView::new().set_table_reference(TableReference::default()/* use setters */);Sourcepub fn set_or_clear_table_reference<T>(self, v: Option<T>) -> Selfwhere
T: Into<TableReference>,
pub fn set_or_clear_table_reference<T>(self, v: Option<T>) -> Selfwhere
T: Into<TableReference>,
Sets or clears the value of table_reference.
§Example
use google_cloud_bigquery_v2::model::TableReference;
let x = MaterializedView::new().set_or_clear_table_reference(Some(TableReference::default()/* use setters */));
let x = MaterializedView::new().set_or_clear_table_reference(None::<TableReference>);Sourcepub fn set_chosen<T>(self, v: T) -> Self
pub fn set_chosen<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_chosen<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_chosen<T>(self, v: Option<T>) -> Self
Sourcepub fn set_estimated_bytes_saved<T>(self, v: T) -> Self
pub fn set_estimated_bytes_saved<T>(self, v: T) -> Self
Sets the value of estimated_bytes_saved.
§Example
let x = MaterializedView::new().set_estimated_bytes_saved(42);Sourcepub fn set_or_clear_estimated_bytes_saved<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_estimated_bytes_saved<T>(self, v: Option<T>) -> Self
Sets or clears the value of estimated_bytes_saved.
§Example
let x = MaterializedView::new().set_or_clear_estimated_bytes_saved(Some(42));
let x = MaterializedView::new().set_or_clear_estimated_bytes_saved(None::<i32>);Sourcepub fn set_rejected_reason<T>(self, v: T) -> Selfwhere
T: Into<RejectedReason>,
pub fn set_rejected_reason<T>(self, v: T) -> Selfwhere
T: Into<RejectedReason>,
Sets the value of rejected_reason.
§Example
use google_cloud_bigquery_v2::model::materialized_view::RejectedReason;
let x0 = MaterializedView::new().set_rejected_reason(RejectedReason::NoData);
let x1 = MaterializedView::new().set_rejected_reason(RejectedReason::Cost);
let x2 = MaterializedView::new().set_rejected_reason(RejectedReason::BaseTableTruncated);Sourcepub fn set_or_clear_rejected_reason<T>(self, v: Option<T>) -> Selfwhere
T: Into<RejectedReason>,
pub fn set_or_clear_rejected_reason<T>(self, v: Option<T>) -> Selfwhere
T: Into<RejectedReason>,
Sets or clears the value of rejected_reason.
§Example
use google_cloud_bigquery_v2::model::materialized_view::RejectedReason;
let x0 = MaterializedView::new().set_or_clear_rejected_reason(Some(RejectedReason::NoData));
let x1 = MaterializedView::new().set_or_clear_rejected_reason(Some(RejectedReason::Cost));
let x2 = MaterializedView::new().set_or_clear_rejected_reason(Some(RejectedReason::BaseTableTruncated));
let x_none = MaterializedView::new().set_or_clear_rejected_reason(None::<RejectedReason>);Trait Implementations§
Source§impl Clone for MaterializedView
impl Clone for MaterializedView
Source§fn clone(&self) -> MaterializedView
fn clone(&self) -> MaterializedView
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request