#[non_exhaustive]pub struct IndexUnusedReason {
pub code: Option<Code>,
pub message: Option<String>,
pub base_table: Option<TableReference>,
pub index_name: Option<String>,
/* private fields */
}Expand description
Reason about why no search index was used in the search query (or sub-query).
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.code: Option<Code>Specifies the high-level reason for the scenario when no search index was used.
message: Option<String>Free form human-readable reason for the scenario when no search index was used.
base_table: Option<TableReference>Specifies the base table involved in the reason that no search index was used.
index_name: Option<String>Specifies the name of the unused search index, if available.
Implementations§
Source§impl IndexUnusedReason
impl IndexUnusedReason
Sourcepub fn set_code<T>(self, v: T) -> Self
pub fn set_code<T>(self, v: T) -> Self
Sets the value of code.
§Example
ⓘ
use google_cloud_bigquery_v2::model::index_unused_reason::Code;
let x0 = IndexUnusedReason::new().set_code(Code::IndexConfigNotAvailable);
let x1 = IndexUnusedReason::new().set_code(Code::PendingIndexCreation);
let x2 = IndexUnusedReason::new().set_code(Code::BaseTableTruncated);Sourcepub fn set_or_clear_code<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_code<T>(self, v: Option<T>) -> Self
Sets or clears the value of code.
§Example
ⓘ
use google_cloud_bigquery_v2::model::index_unused_reason::Code;
let x0 = IndexUnusedReason::new().set_or_clear_code(Some(Code::IndexConfigNotAvailable));
let x1 = IndexUnusedReason::new().set_or_clear_code(Some(Code::PendingIndexCreation));
let x2 = IndexUnusedReason::new().set_or_clear_code(Some(Code::BaseTableTruncated));
let x_none = IndexUnusedReason::new().set_or_clear_code(None::<Code>);Sourcepub fn set_message<T>(self, v: T) -> Self
pub fn set_message<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_message<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_message<T>(self, v: Option<T>) -> Self
Sourcepub fn set_base_table<T>(self, v: T) -> Selfwhere
T: Into<TableReference>,
pub fn set_base_table<T>(self, v: T) -> Selfwhere
T: Into<TableReference>,
Sets the value of base_table.
§Example
ⓘ
use google_cloud_bigquery_v2::model::TableReference;
let x = IndexUnusedReason::new().set_base_table(TableReference::default()/* use setters */);Sourcepub fn set_or_clear_base_table<T>(self, v: Option<T>) -> Selfwhere
T: Into<TableReference>,
pub fn set_or_clear_base_table<T>(self, v: Option<T>) -> Selfwhere
T: Into<TableReference>,
Sets or clears the value of base_table.
§Example
ⓘ
use google_cloud_bigquery_v2::model::TableReference;
let x = IndexUnusedReason::new().set_or_clear_base_table(Some(TableReference::default()/* use setters */));
let x = IndexUnusedReason::new().set_or_clear_base_table(None::<TableReference>);Sourcepub fn set_index_name<T>(self, v: T) -> Self
pub fn set_index_name<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_index_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_index_name<T>(self, v: Option<T>) -> Self
Sets or clears the value of index_name.
§Example
ⓘ
let x = IndexUnusedReason::new().set_or_clear_index_name(Some("example"));
let x = IndexUnusedReason::new().set_or_clear_index_name(None::<String>);Trait Implementations§
Source§impl Clone for IndexUnusedReason
impl Clone for IndexUnusedReason
Source§fn clone(&self) -> IndexUnusedReason
fn clone(&self) -> IndexUnusedReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IndexUnusedReason
impl Debug for IndexUnusedReason
Source§impl Default for IndexUnusedReason
impl Default for IndexUnusedReason
Source§fn default() -> IndexUnusedReason
fn default() -> IndexUnusedReason
Returns the “default value” for a type. Read more
Source§impl Message for IndexUnusedReason
impl Message for IndexUnusedReason
Source§impl PartialEq for IndexUnusedReason
impl PartialEq for IndexUnusedReason
impl StructuralPartialEq for IndexUnusedReason
Auto Trait Implementations§
impl Freeze for IndexUnusedReason
impl RefUnwindSafe for IndexUnusedReason
impl Send for IndexUnusedReason
impl Sync for IndexUnusedReason
impl Unpin for IndexUnusedReason
impl UnsafeUnpin for IndexUnusedReason
impl UnwindSafe for IndexUnusedReason
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<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>
Wrap the input message
T in a tonic::Request