pub enum DynamicQueryError {
Serialize(Error),
Utf8(FromUtf8Error),
UnsupportedBytesParameter(String),
InvalidDateTimeParameter {
path: String,
millis: i64,
},
}Expand description
Errors returned while building or serializing a dynamic query request payload.
Variants§
Serialize(Error)
Failed to serialize the request to JSON.
Utf8(FromUtf8Error)
Failed to decode serialized JSON bytes as UTF-8.
UnsupportedBytesParameter(String)
Dynamic query JSON cannot faithfully represent a bytes parameter.
InvalidDateTimeParameter
A datetime parameter could not be rendered as RFC3339.
Implementations§
Source§impl DynamicQueryError
impl DynamicQueryError
Sourcepub fn unsupported_bytes(path: impl Into<String>) -> Self
pub fn unsupported_bytes(path: impl Into<String>) -> Self
Build an error for a bytes parameter path that cannot be represented safely.
Sourcepub fn invalid_datetime(path: impl Into<String>, millis: i64) -> Self
pub fn invalid_datetime(path: impl Into<String>, millis: i64) -> Self
Build an error for a datetime value that cannot be rendered safely.
Trait Implementations§
Source§impl Debug for DynamicQueryError
impl Debug for DynamicQueryError
Source§impl Display for DynamicQueryError
impl Display for DynamicQueryError
Source§impl Error for DynamicQueryError
impl Error for DynamicQueryError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for DynamicQueryError
impl From<Error> for DynamicQueryError
Source§impl From<FromUtf8Error> for DynamicQueryError
impl From<FromUtf8Error> for DynamicQueryError
Source§fn from(value: FromUtf8Error) -> Self
fn from(value: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DynamicQueryError
impl !RefUnwindSafe for DynamicQueryError
impl Send for DynamicQueryError
impl Sync for DynamicQueryError
impl Unpin for DynamicQueryError
impl UnsafeUnpin for DynamicQueryError
impl !UnwindSafe for DynamicQueryError
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