Struct google_api_proto::google::cloud::bigquery::v2::TableMetadataCacheUsage
source · pub struct TableMetadataCacheUsage {
pub table_reference: Option<TableReference>,
pub unused_reason: Option<i32>,
pub explanation: Option<String>,
pub staleness: Option<Duration>,
pub table_type: String,
}
Expand description
Table level detail on the usage of metadata caching. Only set for Metadata caching eligible tables referenced in the query.
Fields§
§table_reference: Option<TableReference>
Metadata caching eligible table referenced in the query.
unused_reason: Option<i32>
Reason for not using metadata caching for the table.
explanation: Option<String>
Free form human-readable reason metadata caching was unused for the job.
staleness: Option<Duration>
Duration since last refresh as of this job for managed tables (indicates metadata cache staleness as seen by this job).
table_type: String
Implementations§
source§impl TableMetadataCacheUsage
impl TableMetadataCacheUsage
sourcepub fn unused_reason(&self) -> UnusedReason
pub fn unused_reason(&self) -> UnusedReason
Returns the enum value of unused_reason
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_unused_reason(&mut self, value: UnusedReason)
pub fn set_unused_reason(&mut self, value: UnusedReason)
Sets unused_reason
to the provided enum value.
sourcepub fn explanation(&self) -> &str
pub fn explanation(&self) -> &str
Returns the value of explanation
, or the default value if explanation
is unset.
Trait Implementations§
source§impl Clone for TableMetadataCacheUsage
impl Clone for TableMetadataCacheUsage
source§fn clone(&self) -> TableMetadataCacheUsage
fn clone(&self) -> TableMetadataCacheUsage
Returns a copy 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 TableMetadataCacheUsage
impl Debug for TableMetadataCacheUsage
source§impl Default for TableMetadataCacheUsage
impl Default for TableMetadataCacheUsage
source§impl Message for TableMetadataCacheUsage
impl Message for TableMetadataCacheUsage
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for TableMetadataCacheUsage
impl PartialEq for TableMetadataCacheUsage
source§fn eq(&self, other: &TableMetadataCacheUsage) -> bool
fn eq(&self, other: &TableMetadataCacheUsage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TableMetadataCacheUsage
Auto Trait Implementations§
impl Freeze for TableMetadataCacheUsage
impl RefUnwindSafe for TableMetadataCacheUsage
impl Send for TableMetadataCacheUsage
impl Sync for TableMetadataCacheUsage
impl Unpin for TableMetadataCacheUsage
impl UnwindSafe for TableMetadataCacheUsage
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
§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>
Wrap the input message
T
in a tonic::Request