Struct google_api_proto::google::cloud::bigquery::v2::MaterializedView
source · pub struct MaterializedView {
pub table_reference: Option<TableReference>,
pub chosen: Option<bool>,
pub estimated_bytes_saved: Option<i64>,
pub rejected_reason: Option<i32>,
}
Expand description
A materialized view considered for a query job.
Fields§
§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<i32>
If present, specifies the reason why the materialized view was not chosen for the query.
Implementations§
source§impl MaterializedView
impl MaterializedView
sourcepub fn chosen(&self) -> bool
pub fn chosen(&self) -> bool
Returns the value of chosen
, or the default value if chosen
is unset.
sourcepub fn estimated_bytes_saved(&self) -> i64
pub fn estimated_bytes_saved(&self) -> i64
Returns the value of estimated_bytes_saved
, or the default value if estimated_bytes_saved
is unset.
sourcepub fn rejected_reason(&self) -> RejectedReason
pub fn rejected_reason(&self) -> RejectedReason
Returns the enum value of rejected_reason
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_rejected_reason(&mut self, value: RejectedReason)
pub fn set_rejected_reason(&mut self, value: RejectedReason)
Sets rejected_reason
to the provided enum value.
Trait Implementations§
source§impl Clone for MaterializedView
impl Clone for MaterializedView
source§fn clone(&self) -> MaterializedView
fn clone(&self) -> MaterializedView
1.0.0 · 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§impl Message for MaterializedView
impl Message for MaterializedView
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for MaterializedView
impl PartialEq for MaterializedView
source§fn eq(&self, other: &MaterializedView) -> bool
fn eq(&self, other: &MaterializedView) -> bool
self
and other
values to be equal, and is used
by ==
.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
§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> 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