#[non_exhaustive]pub struct ExecuteDashboardQueryResponse {
pub results: Vec<ColumnData>,
pub data_sources: Vec<DataSource>,
pub last_backend_cache_refreshed_time: Option<Timestamp>,
pub time_window: Option<Interval>,
pub query_runtime_errors: Vec<QueryRuntimeError>,
pub language_features: Vec<LanguageFeature>,
/* private fields */
}Expand description
Response message for executing a dashboard 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.results: Vec<ColumnData>Result rows that are queried.
data_sources: Vec<DataSource>Datasource of the query and results.
last_backend_cache_refreshed_time: Option<Timestamp>Optional. Last time the cache was refreshed. This would be used by the UI to show the last updated time.
time_window: Option<Interval>Time window against which query was executed.
query_runtime_errors: Vec<QueryRuntimeError>Runtime errors
language_features: Vec<LanguageFeature>Optional. Language features found in the query.
Implementations§
Source§impl ExecuteDashboardQueryResponse
impl ExecuteDashboardQueryResponse
Sourcepub fn set_results<T, V>(self, v: T) -> Self
pub fn set_results<T, V>(self, v: T) -> Self
Sourcepub fn set_data_sources<T, V>(self, v: T) -> Self
pub fn set_data_sources<T, V>(self, v: T) -> Self
Sets the value of data_sources.
§Example
ⓘ
use google_cloud_chronicle_v1::model::DataSource;
let x = ExecuteDashboardQueryResponse::new().set_data_sources([
DataSource::Udm,
DataSource::Entity,
DataSource::IngestionMetrics,
]);Sourcepub fn set_last_backend_cache_refreshed_time<T>(self, v: T) -> Self
pub fn set_last_backend_cache_refreshed_time<T>(self, v: T) -> Self
Sets the value of last_backend_cache_refreshed_time.
§Example
ⓘ
use wkt::Timestamp;
let x = ExecuteDashboardQueryResponse::new().set_last_backend_cache_refreshed_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_last_backend_cache_refreshed_time<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_last_backend_cache_refreshed_time<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of last_backend_cache_refreshed_time.
§Example
ⓘ
use wkt::Timestamp;
let x = ExecuteDashboardQueryResponse::new().set_or_clear_last_backend_cache_refreshed_time(Some(Timestamp::default()/* use setters */));
let x = ExecuteDashboardQueryResponse::new().set_or_clear_last_backend_cache_refreshed_time(None::<Timestamp>);Sourcepub fn set_time_window<T>(self, v: T) -> Self
pub fn set_time_window<T>(self, v: T) -> Self
Sets the value of time_window.
§Example
ⓘ
use google_cloud_type::model::Interval;
let x = ExecuteDashboardQueryResponse::new().set_time_window(Interval::default()/* use setters */);Sourcepub fn set_or_clear_time_window<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_time_window<T>(self, v: Option<T>) -> Self
Sets or clears the value of time_window.
§Example
ⓘ
use google_cloud_type::model::Interval;
let x = ExecuteDashboardQueryResponse::new().set_or_clear_time_window(Some(Interval::default()/* use setters */));
let x = ExecuteDashboardQueryResponse::new().set_or_clear_time_window(None::<Interval>);Sourcepub fn set_query_runtime_errors<T, V>(self, v: T) -> Self
pub fn set_query_runtime_errors<T, V>(self, v: T) -> Self
Sets the value of query_runtime_errors.
§Example
ⓘ
use google_cloud_chronicle_v1::model::QueryRuntimeError;
let x = ExecuteDashboardQueryResponse::new()
.set_query_runtime_errors([
QueryRuntimeError::default()/* use setters */,
QueryRuntimeError::default()/* use (different) setters */,
]);Sourcepub fn set_language_features<T, V>(self, v: T) -> Self
pub fn set_language_features<T, V>(self, v: T) -> Self
Sets the value of language_features.
§Example
ⓘ
use google_cloud_chronicle_v1::model::LanguageFeature;
let x = ExecuteDashboardQueryResponse::new().set_language_features([
LanguageFeature::Joins,
LanguageFeature::Stages,
LanguageFeature::DataTables,
]);Trait Implementations§
Source§impl Clone for ExecuteDashboardQueryResponse
impl Clone for ExecuteDashboardQueryResponse
Source§fn clone(&self) -> ExecuteDashboardQueryResponse
fn clone(&self) -> ExecuteDashboardQueryResponse
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 Default for ExecuteDashboardQueryResponse
impl Default for ExecuteDashboardQueryResponse
Source§fn default() -> ExecuteDashboardQueryResponse
fn default() -> ExecuteDashboardQueryResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for ExecuteDashboardQueryResponse
impl PartialEq for ExecuteDashboardQueryResponse
Source§fn eq(&self, other: &ExecuteDashboardQueryResponse) -> bool
fn eq(&self, other: &ExecuteDashboardQueryResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExecuteDashboardQueryResponse
Auto Trait Implementations§
impl Freeze for ExecuteDashboardQueryResponse
impl RefUnwindSafe for ExecuteDashboardQueryResponse
impl Send for ExecuteDashboardQueryResponse
impl Sync for ExecuteDashboardQueryResponse
impl Unpin for ExecuteDashboardQueryResponse
impl UnsafeUnpin for ExecuteDashboardQueryResponse
impl UnwindSafe for ExecuteDashboardQueryResponse
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