pub struct RunnerApiError<D = Value> {
pub kind: RunnerErrorKind,
pub msg: String,
pub data: D,
pub sensitive: bool,
}Fields§
§kind: RunnerErrorKind§msg: String§data: DStructured data associated with this error.
sensitive: boolWhether data contains sensitive information that Lexe
shouldn’t see (e.g. a route). Such data may still be logged by
the app or in SDKs but shouldn’t be logged inside Lexe infra.
Implementations§
Source§impl RunnerApiError
impl RunnerApiError
pub fn at_capacity(error: impl Display) -> Self
pub fn unknown_measurement(measurement: Measurement) -> Self
pub fn unknown_user(user_pk: &UserPk, msg: impl Display) -> Self
Trait Implementations§
Source§impl<D: Clone> Clone for RunnerApiError<D>
impl<D: Clone> Clone for RunnerApiError<D>
Source§fn clone(&self) -> RunnerApiError<D>
fn clone(&self) -> RunnerApiError<D>
Returns a duplicate 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<D: Debug> Debug for RunnerApiError<D>
impl<D: Debug> Debug for RunnerApiError<D>
Source§impl<D: Default> Default for RunnerApiError<D>
impl<D: Default> Default for RunnerApiError<D>
Source§fn default() -> RunnerApiError<D>
fn default() -> RunnerApiError<D>
Returns the “default value” for a type. Read more
Source§impl Display for RunnerApiError
impl Display for RunnerApiError
Source§impl<D> Error for RunnerApiError<D>
impl<D> Error for RunnerApiError<D>
1.30.0 · 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<CommonApiError> for RunnerApiError
impl From<CommonApiError> for RunnerApiError
Source§fn from(common_error: CommonApiError) -> Self
fn from(common_error: CommonApiError) -> Self
Converts to this type from the input type.
Source§impl From<ErrorResponse> for RunnerApiError
impl From<ErrorResponse> for RunnerApiError
Source§fn from(err_resp: ErrorResponse) -> Self
fn from(err_resp: ErrorResponse) -> Self
Converts to this type from the input type.
Source§impl From<RunnerApiError> for ErrorResponse
impl From<RunnerApiError> for ErrorResponse
Source§fn from(api_error: RunnerApiError) -> Self
fn from(api_error: RunnerApiError) -> Self
Converts to this type from the input type.
Source§impl<D: PartialEq> PartialEq for RunnerApiError<D>
impl<D: PartialEq> PartialEq for RunnerApiError<D>
Source§impl ToHttpStatus for RunnerApiError
impl ToHttpStatus for RunnerApiError
fn to_http_status(&self) -> StatusCode
impl<D: Eq> Eq for RunnerApiError<D>
impl<D> StructuralPartialEq for RunnerApiError<D>
Auto Trait Implementations§
impl<D> Freeze for RunnerApiError<D>where
D: Freeze,
impl<D> RefUnwindSafe for RunnerApiError<D>where
D: RefUnwindSafe,
impl<D> Send for RunnerApiError<D>where
D: Send,
impl<D> Sync for RunnerApiError<D>where
D: Sync,
impl<D> Unpin for RunnerApiError<D>where
D: Unpin,
impl<D> UnsafeUnpin for RunnerApiError<D>where
D: UnsafeUnpin,
impl<D> UnwindSafe for RunnerApiError<D>where
D: UnwindSafe,
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