#[non_exhaustive]pub struct QueryError {
pub locator: Option<TextLocator>,
pub message: String,
}Expand description
An error associated with a query in the time series query language format.
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.locator: Option<TextLocator>The location of the time series query language text that this error applies to.
message: StringThe error message.
Implementations§
Source§impl QueryError
impl QueryError
Sourcepub fn set_locator<T: Into<Option<TextLocator>>>(self, v: T) -> Self
pub fn set_locator<T: Into<Option<TextLocator>>>(self, v: T) -> Self
Sets the value of locator.
Sourcepub fn set_message<T: Into<String>>(self, v: T) -> Self
pub fn set_message<T: Into<String>>(self, v: T) -> Self
Sets the value of message.
Trait Implementations§
Source§impl Clone for QueryError
impl Clone for QueryError
Source§fn clone(&self) -> QueryError
fn clone(&self) -> QueryError
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 QueryError
impl Debug for QueryError
Source§impl Default for QueryError
impl Default for QueryError
Source§fn default() -> QueryError
fn default() -> QueryError
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for QueryErrorwhere
QueryError: Default,
impl<'de> Deserialize<'de> for QueryErrorwhere
QueryError: 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 PartialEq for QueryError
impl PartialEq for QueryError
Source§impl Serialize for QueryError
impl Serialize for QueryError
impl StructuralPartialEq for QueryError
Auto Trait Implementations§
impl Freeze for QueryError
impl RefUnwindSafe for QueryError
impl Send for QueryError
impl Sync for QueryError
impl Unpin for QueryError
impl UnwindSafe for QueryError
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