#[non_exhaustive]pub struct QueryRuntimeError {
pub error_title: String,
pub error_description: String,
pub error_severity: ErrorSeverity,
pub metadata: Vec<QueryRuntimeErrorMetadata>,
pub warning_reason: WarningReason,
/* private fields */
}Expand description
Runtime error for 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.error_title: StringShort Description of the error.
error_description: StringError message
error_severity: ErrorSeveritySeverity of the error.
metadata: Vec<QueryRuntimeErrorMetadata>Metadata for the error.
warning_reason: WarningReasonReason for the error.
Implementations§
Source§impl QueryRuntimeError
impl QueryRuntimeError
Sourcepub fn set_error_title<T: Into<String>>(self, v: T) -> Self
pub fn set_error_title<T: Into<String>>(self, v: T) -> Self
Sets the value of error_title.
§Example
ⓘ
let x = QueryRuntimeError::new().set_error_title("example");Sourcepub fn set_error_description<T: Into<String>>(self, v: T) -> Self
pub fn set_error_description<T: Into<String>>(self, v: T) -> Self
Sets the value of error_description.
§Example
ⓘ
let x = QueryRuntimeError::new().set_error_description("example");Sourcepub fn set_error_severity<T: Into<ErrorSeverity>>(self, v: T) -> Self
pub fn set_error_severity<T: Into<ErrorSeverity>>(self, v: T) -> Self
Sets the value of error_severity.
§Example
ⓘ
use google_cloud_chronicle_v1::model::query_runtime_error::ErrorSeverity;
let x0 = QueryRuntimeError::new().set_error_severity(ErrorSeverity::Warning);
let x1 = QueryRuntimeError::new().set_error_severity(ErrorSeverity::Severe);Sourcepub fn set_metadata<T, V>(self, v: T) -> Self
pub fn set_metadata<T, V>(self, v: T) -> Self
Sourcepub fn set_warning_reason<T: Into<WarningReason>>(self, v: T) -> Self
pub fn set_warning_reason<T: Into<WarningReason>>(self, v: T) -> Self
Sets the value of warning_reason.
§Example
ⓘ
use google_cloud_chronicle_v1::model::query_runtime_error::WarningReason;
let x0 = QueryRuntimeError::new().set_warning_reason(WarningReason::RowLimitExceeded);
let x1 = QueryRuntimeError::new().set_warning_reason(WarningReason::DefaultRowLimitExceeded);
let x2 = QueryRuntimeError::new().set_warning_reason(WarningReason::CuratedQueryDefaultRowLimitExceeded);Trait Implementations§
Source§impl Clone for QueryRuntimeError
impl Clone for QueryRuntimeError
Source§fn clone(&self) -> QueryRuntimeError
fn clone(&self) -> QueryRuntimeError
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 QueryRuntimeError
impl Debug for QueryRuntimeError
Source§impl Default for QueryRuntimeError
impl Default for QueryRuntimeError
Source§fn default() -> QueryRuntimeError
fn default() -> QueryRuntimeError
Returns the “default value” for a type. Read more
Source§impl Message for QueryRuntimeError
impl Message for QueryRuntimeError
Source§impl PartialEq for QueryRuntimeError
impl PartialEq for QueryRuntimeError
Source§fn eq(&self, other: &QueryRuntimeError) -> bool
fn eq(&self, other: &QueryRuntimeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QueryRuntimeError
Auto Trait Implementations§
impl Freeze for QueryRuntimeError
impl RefUnwindSafe for QueryRuntimeError
impl Send for QueryRuntimeError
impl Sync for QueryRuntimeError
impl Unpin for QueryRuntimeError
impl UnsafeUnpin for QueryRuntimeError
impl UnwindSafe for QueryRuntimeError
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