#[non_exhaustive]pub struct QueryRuntimeErrorMetadata {
pub key: MetadataKey,
pub value: String,
/* private fields */
}Expand description
Metadata for the error.
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.key: MetadataKeyMetadata key.
value: StringMetadata value.
Implementations§
Source§impl QueryRuntimeErrorMetadata
impl QueryRuntimeErrorMetadata
Sourcepub fn set_key<T: Into<MetadataKey>>(self, v: T) -> Self
pub fn set_key<T: Into<MetadataKey>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for QueryRuntimeErrorMetadata
impl Clone for QueryRuntimeErrorMetadata
Source§fn clone(&self) -> QueryRuntimeErrorMetadata
fn clone(&self) -> QueryRuntimeErrorMetadata
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 QueryRuntimeErrorMetadata
impl Debug for QueryRuntimeErrorMetadata
Source§impl Default for QueryRuntimeErrorMetadata
impl Default for QueryRuntimeErrorMetadata
Source§fn default() -> QueryRuntimeErrorMetadata
fn default() -> QueryRuntimeErrorMetadata
Returns the “default value” for a type. Read more
Source§impl Message for QueryRuntimeErrorMetadata
impl Message for QueryRuntimeErrorMetadata
Source§impl PartialEq for QueryRuntimeErrorMetadata
impl PartialEq for QueryRuntimeErrorMetadata
Source§fn eq(&self, other: &QueryRuntimeErrorMetadata) -> bool
fn eq(&self, other: &QueryRuntimeErrorMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QueryRuntimeErrorMetadata
Auto Trait Implementations§
impl Freeze for QueryRuntimeErrorMetadata
impl RefUnwindSafe for QueryRuntimeErrorMetadata
impl Send for QueryRuntimeErrorMetadata
impl Sync for QueryRuntimeErrorMetadata
impl Unpin for QueryRuntimeErrorMetadata
impl UnsafeUnpin for QueryRuntimeErrorMetadata
impl UnwindSafe for QueryRuntimeErrorMetadata
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