#[non_exhaustive]pub struct QueryErrorList {
pub errors: Vec<QueryError>,
pub error_summary: String,
}Expand description
This is an error detail intended to be used with INVALID_ARGUMENT errors.
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.errors: Vec<QueryError>Errors in parsing the time series query language text. The number of errors in the response may be limited.
error_summary: StringA summary of all the errors.
Implementations§
Source§impl QueryErrorList
impl QueryErrorList
Sourcepub fn set_error_summary<T: Into<String>>(self, v: T) -> Self
pub fn set_error_summary<T: Into<String>>(self, v: T) -> Self
Sets the value of error_summary.
Sourcepub fn set_errors<T, V>(self, v: T) -> Self
pub fn set_errors<T, V>(self, v: T) -> Self
Sets the value of errors.
Trait Implementations§
Source§impl Clone for QueryErrorList
impl Clone for QueryErrorList
Source§fn clone(&self) -> QueryErrorList
fn clone(&self) -> QueryErrorList
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 QueryErrorList
impl Debug for QueryErrorList
Source§impl Default for QueryErrorList
impl Default for QueryErrorList
Source§fn default() -> QueryErrorList
fn default() -> QueryErrorList
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for QueryErrorListwhere
QueryErrorList: Default,
impl<'de> Deserialize<'de> for QueryErrorListwhere
QueryErrorList: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for QueryErrorList
impl Message for QueryErrorList
Source§impl PartialEq for QueryErrorList
impl PartialEq for QueryErrorList
Source§impl Serialize for QueryErrorList
impl Serialize for QueryErrorList
impl StructuralPartialEq for QueryErrorList
Auto Trait Implementations§
impl Freeze for QueryErrorList
impl RefUnwindSafe for QueryErrorList
impl Send for QueryErrorList
impl Sync for QueryErrorList
impl Unpin for QueryErrorList
impl UnwindSafe for QueryErrorList
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